Created
September 12, 2012 21:49
-
-
Save jbasdf/3710182 to your computer and use it in GitHub Desktop.
iTerm2 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
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