Last active
August 29, 2015 14:24
-
-
Save coodix/bbd67f77be79a7012bea to your computer and use it in GitHub Desktop.
Apple script for creating tabs in iTerm2 after launch
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 "System Events" | |
-- set position of front window of application process "iTerm" to {590, 290} | |
-- end tell | |
tell application "iTerm" | |
activate | |
tell current terminal | |
set number of columns to 120 | |
set number of rows to 30 | |
-- 1st tab: change working directory for project badoo | |
tell the last session to write text "cd Work/badoo && clear" | |
delay 1 | |
-- 2rd tab | |
launch session "Default Session" | |
tell the last session to write text "cd Work/ccserver && clear" | |
end tell | |
end tell | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment