Skip to content

Instantly share code, notes, and snippets.

@masnick
Created August 4, 2010 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masnick/508569 to your computer and use it in GitHub Desktop.
Save masnick/508569 to your computer and use it in GitHub Desktop.
Run shell script from Finder
tell application "Finder"
set theWindow to window 1
set thePath to (POSIX path of (target of theWindow as alias))
tell application "Terminal"
do script "cd " & thePath & " && ./runme.sh"
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment