Platypus: Build your own Mac Apps with Scripts!
Platypus is an amazing Mac Admins utility that allows you to take virtually any script and convert it into a GUI Application. Lets take a look at what it is and what it can do.
Ok so the first thing we need is a scrip to get started with so lets start with a script that I wrote to determine if Google Drive is running. As you can see this simple script just checks to see if its running and returns a value.
If its not running then it opens the app, if it is running then it prints “Running”
#!/bin/bash
if [[ ! $(ps axo pid,command | grep "[G]oogle Drive.app") ]]; then
open -a Google\ Drive.app
else
echo "Running"
fiNow that we have a script its time to open the Platypus app. Here you can see we have lots of options.

The important options are to
- Set an App Name.
- Select the Script Type (In this case its bash or SH)
- Set an App Script (Path).
- Set the app interface. Here I am setting Text Window.

These are the primary options you need to set. There are other values for interface type, those are none, progress bar, webview, status menu, and droplet. Each of these has their own purpose and use case.
For me I want the user of my app to see the output text so I will choose Text Window as thats the default behavior of this interface. If you choose progress bar, then it will show the progress of a script without any verbose text outputs.
Webview is great if you have a webpage you want to display to the end user while the app is running. Status menu allows the app to run in the top status bar and droplet allows your app to accept users ability to drop items into the app as a variable input.
Now that I have the app values set I need to build or create the app and when I do I am asked to save the app.

Now its time to run the app, here you can see I am getting an error output because not only is Google Drive not running, its not even installed on my system. So I ether need to modify the script to account for that possibility or I need to pick a different type of interface if I do not want the user to see this message.

As you can see Platypus is an amazing tool that allows any Mac Admin to take a script and turn it into a viable application quickly and easily.
Related Posts
ABM Warranty 0.4.1 Walkthrough: Multiple Credentials
In this part of the ABM Warranty 0.4.1 walkthrough series, I’m focusing on multiple credentials. In the first video, I showed the basic setup and how to add a single credential. In...
Amphetamine: The Ultimate Mac Utility to Keep Your Computer Awake
What is Amphetamine? Amphetamine is a versatile application available on the Mac App Store that allows users to keep their Mac awake for extended periods. Whether you’re downloading large files, running presentations,...
Mactracker Walkthrough and Review
Key Features of Mac Tracker Comprehensive Database of Apple Products Historical Data: Access detailed information on every Mac OS and accessory ever released by Apple. Timeline View: Navigate through a timeline that...
Reviewing Bravas.io - Roll your own Cloud MSP like Electric.ai
TL;DR Mention the code JONBROWN when you ask for a demo or start a 30-day trial and enjoy 5% additional off your first year of annual service.
Reviewing Bravas.io - Enrolling using a Zero Touch Workflow!
TL;DR Mention the code JONBROWN when you ask for a demo or start a 30-day trial and enjoy 5% additional off your first year of annual service.
Reviewing Bravas.io a breakthrough new MDM and IDP for Mac, Windows and iOS!
TL;DR Mention the code JONBROWN when you ask for a demo or start a 30-day trial and enjoy 5% additional off your first year of annual service.
Hancock Walkthrough and Review
I use this often and wanted to share this utility with my followers to share some of the tools that I use on the regular with my Mac followers. If you found...