Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
On a side note: …without the client thinking that I'm trying to destroy his computer. Trust issues? –  fideli Dec 14 '10 at 16:10
1  
Good grief. Have you pointed out that Apple included Terminal for a reason other than self destruction? –  penguirl Dec 14 '10 at 16:22
    
Thank god the evil commands that can be executed in Terminal can never be performed without opening Terminal, as my answer clearly shows cough. --- @fideli The client might have had a bad experience in the past and, without further knowledge, associated that box with the text in it with pain, costs, and downtime. –  Daniel Beck Dec 14 '10 at 17:00
    
The client doesn't understand anything about computers, and he doesn't know me, but as he can't fix his problem normally I have to step up and make something work for him via remote login. Most clients don't complain if I open the terminal, but some do because they have no notion of what I'm doing. –  Rafael Aug 15 '11 at 17:00

4 Answers 4

up vote 3 down vote accepted

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:

  1. Get ... Finder Items
  2. Run Shell Script with Pass input as arguments and chmod u+x $1
share|improve this answer

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

share|improve this answer

You can store it into a tar.gz file and unpack it and run it... =)

share|improve this answer

Try changing the extension on the script to

.command

That should make it a clickable item in Finder.

share|improve this answer
    
.tool works as well. –  Daniel Beck Dec 14 '10 at 16:05
2  
It changes the default Application to Terminal but stills requires that the shell script has execution permission. It tells me to open Get Info to change it, but there's no option to do it. –  Rafael Dec 14 '10 at 16:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.