Skip to content

Instantly share code, notes, and snippets.

@omoshetech-t
Created March 5, 2015 18:12
Show Gist options
  • Save omoshetech-t/c06c2772c17e27b33c7f to your computer and use it in GitHub Desktop.
Save omoshetech-t/c06c2772c17e27b33c7f to your computer and use it in GitHub Desktop.
Open a specific folder in the Terminal.app.
on run {input}
set command to "cd " & POSIX path of input
tell application "Terminal"
if application "Terminal" is running then
activate
do script command
else
launch
activate
do script command in window 1
end if
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment