Skip to content

Instantly share code, notes, and snippets.



Created Aug 4, 2010
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 & " && ./"
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment