Run shell scripts from the OSX desktop

Published 03 Jul 2013 in FreeBSD, Macintosh, Shell Scripting, Software by ZigPress

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.

platypus

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.

Platypus is developed by an Icelandic developer called Sveinbjorn Thordarson. Kudos Sveinbjorn :)

14 Comments

  1. On 06 Jul 2013 at 20:48, Melanie Rose said:

    Thanks for this information, very helpful!

    Mel

  2. On 07 Jul 2013 at 10:14, daniel said:

    thanks for this post! found it through google as i had the same “problem”. will check it out the software looks interesting

  3. On 11 Jul 2013 at 05:50, Togotutor said:

    I did the similar thing for my builds as i use ant and shell to do my java app builds. so created a shell wrapper and call ant and other shell script within the wrapper.

  4. On 11 Jul 2013 at 09:05, Patternhead said:

    That’s a really useful tip. Thanks for sharing :)

  5. On 15 Jul 2013 at 23:15, Justin said:

    Thanks I needed this, Lol first thing i did is change the icon. I hated launching terminal every time.

  6. On 16 Jul 2013 at 16:27, James said:

    I use Platypus too, Light, Handy and simple! It’s really useful app on Mac, I recommend it to the others too…

  7. On 16 Jul 2013 at 21:44, Mathias said:

    Great piece of information since I use Mac OSX in my office!

  8. On 25 Jul 2013 at 09:06, genetica multimedia said:

    Yeah.. and what is interesting, is the support of old powerPC :) very nice

  9. On 02 Aug 2013 at 14:35, Amazing said:

    This is an amazing article , and it’s very useful , Thank you for sharing

  10. On 02 Aug 2013 at 17:34, Nanobytes said:

    Nice post bro. Definitely helped me out with a few things.

  11. On 06 Aug 2013 at 13:53, Joestokerfitness said:

    Interesting post, Thanks for sharing with us.

  12. On 09 Aug 2013 at 17:40, inspirational Quotes said:

    Thanks for sharing, interesting article. Very useful and can save time and headaches!

  13. On 15 Aug 2013 at 11:02, Branko Jagodic said:

    Great post also this animal is funny at the top .

  14. On 19 Aug 2013 at 18:36, JohnPotamus said:

    Thanks for this, recently got my first mac and I’m slowly learning my way around (everything is so pretty!) :)