This is a work in progress, I will be... Full Story
By Manny Fernandez
January 28, 2020
Creating an .app out of a Script on macOS
Since I am on my backup laptop due to my primary laptop having the keyboard replaced, I wanted to make it easy to launch Unetbootin from my Spotlight
as a .app. Found a nice little app in the AppStore that does just that. In this example, I will do a quick ls
script.
ScriptToApp – App Maker is available in the AppStore and the cost is $2.99
I created a bash script to do a simple ls
and display the results.
#!/bin/bash ls -all
You will need to make it executable
chmod +x test.sh
As you can see, prior to running the chmod
command, you did not have an x
in the rights section. Additionally, you can see that the test.sh
file name is now red. I wrote an article on how to add color to your ls
command.
Launch the ScriptToApp Application
Drag the script file from the folder
Once you drag it on the app, you should get a pop-up
Ensure all the settings are as you want including the name of the .app and click Create App
You can always launch the script through the Spotlight
search bar, but this makes it cleaner. You can see the ls
that ran.
Recent posts
-
-
I have been playing with the free version of... Full Story
-
In my day job, I am on a lot... Full Story