Icon to start a command line application

hugheba

Registered
How do I create and I can that I can click on and it would do the same as if I logged into the terminal and typed:

cd SomeApplication/bin
exec ./SomeApplication

Any help would be appreciated.
 
just make whatever commands into a shell script (type them into a text file and set its executable bit by doing chmod +x on it) give it a .command extension, set it to open in Terminal.app (get info on the file, and set it to to open in a specific application, specifically, Terminal)

You also have to add the path to the shell as the first line of the script. Something like:

#/bin/sh

or whatever shell you want. sh is usually best.
 
Back
Top