Я использую яблочный скрипт, чтобы открыть свою среду разработки.
ОБНОВЛЕНИЕ - Этот скрипт работает. Я переместил ввод текста в конец скрипта, и теперь он работает намного более согласованно.
tell application "Terminal"
activate
do script "cd web_sites/mydomain" in front window
do script "rvm 1.9.2" in front window
do script "rails server" in front window
end tell
tell application "System Events"
if not (exists process "System Events") then
tell application "System Events" to activate
end if
tell process "Terminal" to (keystroke "t" using command down)
end tell
tell application "Terminal"
do script "cd web_sites/mydomain/public/stylesheets" in front window --> tab 2
do script "rvm 1.9.2" in front window --> tab 2
do script "sass --watch stylin.scss:stylin.css" in front window --> tab 2
end tell
tell application "System Events"
tell process "Terminal" to (keystroke "t" using command down)
end tell
tell application "Terminal"
do script "cd web_sites/mydomain" in front window --> tab 3
do script "rvm 1.9.2" in front window --> tab 3
do script "mate ." in front window
delay 4
do shell script "open -a Firefox http://localhost:3000"
end tell
Спасибо за вашу помощь.