Skip to content

Instantly share code, notes, and snippets.

@th3james
Created December 3, 2015 18:15
Show Gist options
  • Save th3james/a4a2e82d3d3a68211317 to your computer and use it in GitHub Desktop.
Save th3james/a4a2e82d3d3a68211317 to your computer and use it in GitHub Desktop.
tell application "iTerm"
activate
set term to (make new terminal)
tell term
set serverSession to (launch session "Default Session")
tell serverSession
set name to "server"
write text "cd src/projectname"
write text "node luxserver.js"
end tell
set cmdsession to (launch session "Default Session")
tell cmdsession
write text "cd src/projectname"
write text "open -a MacVim ."
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment