Skip to content

Instantly share code, notes, and snippets.

@alykat

alykat/iterm_dgnext.scpt

Last active Jan 28, 2019
Embed
What would you like to do?
AppleScript to launch a three-paned iTerm2 window for nprapps/dailygraphics-next
tell application "iTerm"
tell current window
tell current session
-- dailygraphics-next tool pane
set name to "dailygraphics-next"
set webserver to (split vertically with default profile)
-- CHANGE path to your needs
write text "cd ~/src/dailygraphics-templates/"
write text "git pull"
-- CHANGE path to your needs
write text "cd ~/src/dailygraphics-next/"
write text "git pull"
write text "npm install"
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 ~/src/dailygraphics-next/"
write text "npm start"
end tell
tell graphics
-- graphics pane
set name to "graphics-js"
-- CHANGE path to your needs
write text "cd ~/src/graphics-js/"
write text "git pull"
write text "npm install"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment