I have a client that has a mac os x leopard (10.5). I want to be able to ask him to save a shell script that I made in his desktop and execute it, but I can't open the terminal without the client thinking that I'm trying to destroy his computer. :-(
Is there any way I can make the shell executable without entering the terminal and using chmod?
Thanks, Rafael
44 Answers
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
Go the easy route:
"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
Try changing the extension on the script to
.commandThat should make it a clickable item in Finder.
2You can store it into a tar.gz file and unpack it and run it... =)