Last active
January 28, 2019 16:02
-
-
Save alykat/31feba18413c8ca481d8b38547469e15 to your computer and use it in GitHub Desktop.
AppleScript to launch a three-paned iTerm2 window for nprapps/dailygraphics-next
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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