Running shell scripts from Finder
August 13, 2010 Leave a comment
Clicking on shell scripts in Finder does not run them, but most probably open them for edit.
Setting the execute flag and changing the extension to *.command informs the Finder to run the script in a Terminal window. On script completion the terminal window needs to be manually closed.
A similar effect can be obtained by manually setting the property Open With: Terminal.app for the given script.