Skip to content

Instantly share code, notes, and snippets.

@jjelosua
Last active August 5, 2019 20:06
Show Gist options
  • Save jjelosua/53b416bd6655605846264eb9378e9c0e to your computer and use it in GitHub Desktop.
Save jjelosua/53b416bd6655605846264eb9378e9c0e to your computer and use it in GitHub Desktop.
Applescript to launch dailygraphics iTerm configuration (iTerm v3)
tell application "iTerm2"
tell current window
tell current session
-- dailygraphics tool pane
set name to "dailygraphics"
set webserver to (split vertically with default profile)
-- CHANGE path to your needs
write text "cd ~/npr/projects/dailygraphics/"
write text "workon dailygraphics"
write text "git pull"
write text "fab -l"
end tell
tell webserver
-- webserver pane
set name to "webserver"
set graphics to (split horizontally with default profile)
-- CHANGE path to your needs
write text "cd ~/npr/projects/dailygraphics/"
write text "workon dailygraphics"
write text "fab app"
end tell
tell graphics
-- graphics pane
set name to "graphics"
-- change path to your needs
write text "cd ~/npr/projects/graphics/"
write text "git pull"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment