Applescript執行一串指令? - MAC

Table of Contents

我想開啟的一個程式每次都要打開Termianl
然後

輸入cd /Applications/docear-1.0.0_alpha_build6/ 按enter
再輸入./docear.sh

於是我想用Automator中的run Applescript幫忙
在google之後
我只會做到這一步

on run {input, parameters}

tell application "Terminal"
activate
do script with command "cd /Applications/docear-1.0.0_alpha_build6/"
end tell

end run


但是cd /Applications/docear-1.0.0_alpha_build6/完後
./docear.sh的部份卻沒有辦法做到

有沒有人可以告訴我該如何寫?

--

All Comments

Ina avatarIna2012-01-26
command直接打 /Applications/一串東西/docear.sh就可以了
Elvira avatarElvira2012-01-29
謝謝你^o^