Skip to content

Instantly share code, notes, and snippets.

@frontweb
Created October 24, 2010 10:34
Show Gist options
  • Save frontweb/643428 to your computer and use it in GitHub Desktop.
Save frontweb/643428 to your computer and use it in GitHub Desktop.
How To Open Terminal Tabs From An AppleScript
tell application "Terminal"
activate
do script "cd my-project; ./script/server"
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "cd my-project; mate ." in front window
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "cd my-project; ./script/console" in front window
end tell
# Open http://localhost:3000/
delay 10
do shell script "open -a '/Applications/Google Chrome.app' 'http://localhost:3000/'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment