Applescript執行一串指令? - MAC

By Jacky
at 2012-01-21T15:57
at 2012-01-21T15:57
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的部份卻沒有辦法做到
有沒有人可以告訴我該如何寫?
--
然後
輸入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的部份卻沒有辦法做到
有沒有人可以告訴我該如何寫?
--
Tags:
MAC
All Comments

By Ina
at 2012-01-26T03:47
at 2012-01-26T03:47

By Elvira
at 2012-01-29T07:58
at 2012-01-29T07:58
Related Posts
2011 2.0GHZ 15吋 霧面的行情約多少?

By Madame
at 2012-01-21T15:40
at 2012-01-21T15:40
MAC大哉問,在買MAC前你要知道的事情(重新排版完成)

By Delia
at 2012-01-21T13:43
at 2012-01-21T13:43
parallels desktop 7 接晶片讀卡機

By Quintina
at 2012-01-21T09:19
at 2012-01-21T09:19
MigrationAssistant無法安裝於pc上

By Jake
at 2012-01-21T04:56
at 2012-01-21T04:56
系統偏好設定彩球狂轉

By Mia
at 2012-01-21T02:23
at 2012-01-21T02:23