Run shell scripts from the OSX desktop
A quick Mac-related post to share some software I recently discovered and will be using a lot.
Recently I’ve been writing some shell scripts to backup a group of MySQL databases on my development machine (a MacBook Pro running Mountain Lion). The scripts, which use /bin/sh, are working fine, but it was a pain to have to launch a terminal window every time I wanted to run them.
After some googling I found a free MacOS application called Platypus, which takes a shell script and wraps it in a simple application wrapper so you can place it on the desktop or in your Applications folder and run it whenever.
It takes about 5 seconds to enter the details, choose your script file, and compile it into a nicely-packaged application that can be run simply by double-clicking. You can also change the icon if you’re not into cute animals.