Execute shell scripts in the Finder

Aug 27, '01 09:54:28PM

Contributed by: robg

[Submitted by smhaunch]

I'm not sure if this has been reported before, but there is a simple (and quite slick) way of running shell scripts from the finder.

Simply append '.command' to the script name,e.g. test.command, when the script is double clicked from the Finder a terminal window will open and the script is excuted.

The script will of course need execute permissions (chmod ug+x will do the trick) in order to run.

Tip courtesy of Peter Fraterdeus at the O'Reilly Mac DevCenter.

Comments (1)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010827215428108