Skip to content

Instantly share code, notes, and snippets.

@jbasdf
Created September 12, 2012 21:49
Show Gist options
  • Save jbasdf/3710182 to your computer and use it in GitHub Desktop.
Save jbasdf/3710182 to your computer and use it in GitHub Desktop.
iTerm2 AppleScript
launch "iTerm"
tell application "iTerm"
activate
------------------------------------
-- create the Open Tapestry tabs
tell the first terminal
-- set terminal size
set number of columns to 200
set number of rows to 60
tell the last session
set name to "Open Tapestry"
write text "cd projects/opentapestry"
end tell
launch session "Default"
tell the last session
set name to "console"
write text "cd projects/opentapestry"
end tell
launch session "Default"
tell the last session
set name to "guard"
write text "cd projects/opentapestry"
write text "bundle exec guard"
end tell
end tell
------------------------------------
-- create the Open Tapestry Proxy Tabs
set otproxyterm to (make new terminal)
tell otproxyterm
launch session "Default"
tell the last session
set name to "OT Proxy"
write text "cd projects/ot-proxy"
end tell
launch session "Default"
tell the last session
set name to "console"
write text "cd projects/ot-proxy"
end tell
launch session "Default"
tell the last session
set name to "guard"
write text "cd projects/ot-proxy"
write text "bundle exec guard"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment