Executing Shell Scripts from the OS X Dock?

You could create a Automator workflow with a single step – “Run Shell Script”

Then File > Save As, and change the File Format to “Application”. When you open the application, it will run the Shell Script step, executing the command, exiting after it completes.

The benefit to this is it’s really simple to do, and you can very easily get user input (say, selecting a bunch of files), then pass it to the input of the shell script (either to stdin, or as arguments).

(Automator is in your /Applications folder!)

Example workflow

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)