Skip to content

Instantly share code, notes, and snippets.

@brentajones
Created June 7, 2016 15:13
Show Gist options
  • Save brentajones/1bd97fe7604041f394cbecac48820c13 to your computer and use it in GitHub Desktop.
Save brentajones/1bd97fe7604041f394cbecac48820c13 to your computer and use it in GitHub Desktop.
NPR Dailygraphics Launcher for iTerm 2 3.0
tell application "iTerm"
activate
tell current session of current tab of current window
set newSession to (split vertically with same profile)
write text "cd ~/dailygraphics"
write text "workon dailygraphics"
write text "git pull"
write text "fab -l"
end tell
tell second session of current tab of current window
set newSession to (split horizontally with same profile)
write text "cd ~/dailygraphics"
write text "workon dailygraphics"
write text "fab app"
end tell
tell third session of current tab of current window
write text "cd ~/graphics"
write text "git pull"
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment