Created
July 12, 2017 13:19
-
-
Save dillonhafer/fd92fd03ecc0976346f3c3bdf26c2f95 to your computer and use it in GitHub Desktop.
Apple script for iTerm
This file contains hidden or 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
#!/usr/bin/osascript | |
tell application "iTerm2" | |
tell current window | |
set serverTab to (create tab with default profile) | |
tell sessions[1] of serverTab to split vertically with default profile | |
tell sessions[1] of serverTab to write text "yarn start" | |
tell sessions[2] of serverTab to write text "yarn run watch-css" | |
select first tab | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment