[求救] Applescript執行一串指令?

看板MAC作者時間14年前 (2012/01/21 15:57), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/2 (看更多)
我想開啟的一個程式每次都要打開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的部份卻沒有辦法做到 有沒有人可以告訴我該如何寫? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.160.163.236

01/21 16:11, , 1F
command直接打 /Applications/一串東西/docear.sh就可以了
01/21 16:11, 1F

01/21 18:05, , 2F
謝謝你^o^
01/21 18:05, 2F
文章代碼(AID): #1F6c_siV (MAC)
文章代碼(AID): #1F6c_siV (MAC)