Make shell script executable in Mac os x without entering the terminal
Solution 1:
Make an Automator executable or AppleScript that performs the desired command-line actions.
AppleScript:
tell application "Terminal" to do shell script "chmod u+x ~/path"
Terminal will start, but not open a new window.
Automator:
- Get ... Finder Items
-
Run Shell Script with Pass input as arguments and
chmod u+x $1
Solution 2:
Go the easy route: http://www.sveinbjorn.org/platypus
"Platypus can be used to create native, flawlessly integrated Mac OS X applications from interpreted scripts such as shell scripts or Perl and Python programs. This is done by wrapping the script in an application bundle directory structure along with an executable binary that runs the script."
Hope that helps!
Have a wonderful day.
~ tim
Solution 3:
Try changing the extension on the script to
.command
That should make it a clickable item in Finder.