Skip to content

Instantly share code, notes, and snippets.

@eldilibra
Created November 19, 2012 20:03
Show Gist options
  • Save eldilibra/4113522 to your computer and use it in GitHub Desktop.
Save eldilibra/4113522 to your computer and use it in GitHub Desktop.
Set up iTerm for debugging Fetch
#!/usr/bin/osascript
tell app "iTerm"
activate
-- make a new terminal
set myterm to (make new terminal)
-- talk to the new terminal
tell myterm
set pullsession to (launch session "Default Session")
tell pullsession
set name to "Pull"
write text "cd ~/onswipe/fetch-pull"
end tell
set buildsession to (launch session "Default Session")
tell buildsession
set name to "Build"
write text "cd ~/onswipe/fetch-build"
end tell
set imagewerksession to (launch session "Default Session")
tell imagewerksession
set name to "Imagewerk"
write text "cd ~/onswipe/fetch-imagewerk"
end tell
set sanitizesession to (launch session "Default Session")
tell sanitizesession
set name to "Sanitize"
write text "cd ~/onswipe/fetch-sanitize"
end tell
set redissession to (launch session "Default Session")
tell redissession
set name to "Redis"
write text "exec redis-cli"
end tell
set mongosession to (launch session "Default Session")
tell mongosession
set name to "Mongo"
write text "gomongo"
end tell
end tell
-- close the first session
terminate the first session of the first terminal
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment