Skip to content

Instantly share code, notes, and snippets.

@hepplerj
Created February 1, 2011 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hepplerj/806775 to your computer and use it in GitHub Desktop.
Save hepplerj/806775 to your computer and use it in GitHub Desktop.
AppleScript for launching multiple tabbed terminal sessions.
tell application "Terminal"
activate
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh jheppler@segonku.unl.edu" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "ssh jheppler@jetson.unl.edu" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "t ls" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "vmail" in the last tab of window 1
tell application "System Events" to tell process "Terminal.app" to keystroke "t" using command down
do script "remind -c+1 .reminders" in the last tab of window 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment