Skip to content

Instantly share code, notes, and snippets.

@masnick

masnick/gist:508569

Created Aug 4, 2010
Embed
What would you like to do?
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