Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alykat
Last active January 28, 2019 16:02
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 alykat/31feba18413c8ca481d8b38547469e15 to your computer and use it in GitHub Desktop.
Save alykat/31feba18413c8ca481d8b38547469e15 to your computer and use it in GitHub Desktop.
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