Created
August 4, 2010 18:30
-
-
Save masnick/508569 to your computer and use it in GitHub Desktop.
Run shell script from Finder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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