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