2009年9月6日 星期日

run terminal from applescript

use & to combine string

ex:
tell application "Terminal"
activate
repeat with i from 1 to 5
do script with command "cd test\\ " & i & ":ls"
set custom title of window 1 to "test" & i
end repeat
end tell

沒有留言: