Skip to content

Instantly share code, notes, and snippets.

@philippbosch
Created August 11, 2011 10:22
Show Gist options
  • Save philippbosch/1139327 to your computer and use it in GitHub Desktop.
Save philippbosch/1139327 to your computer and use it in GitHub Desktop.
«Work On» Alfred extension
on alfred_script(q)
tell application "iTerm"
activate
try
set _term to last terminal
on error
set _term to (make new terminal)
end try
tell _term
launch session "Default Session"
tell the last session
write text "workon " & q
end tell
end tell
end tell
open location "http://" & q & ":8000/"
set homedir to (path to home folder) as string
tell application "TextMate"
open homedir & "Sites:" & q
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment