PDA

View Full Version : Execute a shell script with a click




Greebazoid
Sep 29, 2006, 02:50 AM
morning boffins..

Any one know how I can execute a .sh file from the desktop with just a click of my mouse?

At present, if I do that, it opens the shell script for edit - I want it to launch.

I've written a workflow that does it for me, but problem is I can only launch one at a time, I need to be able to run it several times concurrently



bousozoku
Sep 29, 2006, 03:11 AM
Create an AppleScript application to run your shell script using "do shell script". You can double click the AppleScript application and it will run the shell script for you.

Greebazoid
Sep 29, 2006, 03:30 AM
Create an AppleScript application to run your shell script using "do shell script". You can double click the AppleScript application and it will run the shell script for you.

Thank you very much. Will give it a good go at getting that working

:D