Skip to content

Instantly share code, notes, and snippets.

@JGallardo
Created December 30, 2013 23:14
Show Gist options
  • Save JGallardo/8189836 to your computer and use it in GitHub Desktop.
Save JGallardo/8189836 to your computer and use it in GitHub Desktop.
example of how to startup a computer to do various things
on run args
set home to (POSIX path of (path to home folder)) as string
tell application "iTerm"
activate
set myTerm to (make new terminal)
tell myTerm
repeat with i from 1 to 6
set newTab to (make new session at the end of sessions)
tell newTab
set name to "My tab " & i
exec command "/bin/bash"
write text "cd " & home & "/Desktop/myfiles/test-projects/bruxzir-express-test/"
write text "node app.js"
end tell
end repeat
end tell
end tell
tell application "Skitch"
activate
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment