How to run a shell script in OS X by double-clicking?
First in terminal make the script executable by typing the following command: chmod a+x yourscriptname Then, in Finder, right-click your file and select “Open with” and then “Other…”. Here you select the application you want the file to execute into, in this case it would be Terminal. To be able to select terminal you need … Read more