Created
October 24, 2010 10:34
-
-
Save frontweb/643428 to your computer and use it in GitHub Desktop.
How To Open Terminal Tabs From An AppleScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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