Skip to content

Instantly share code, notes, and snippets.

@coodix
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coodix/bbd67f77be79a7012bea to your computer and use it in GitHub Desktop.
Save coodix/bbd67f77be79a7012bea to your computer and use it in GitHub Desktop.
Apple script for creating tabs in iTerm2 after launch
-- 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