How To Convert a Terminal Command into an ".app" file? [duplicate]

Solution 1:

These steps are suitable for my use case only. depending on what you wanna do, Changes should be made to the sh file that you're going to create

1) Download the Script called "appify" from Here

2) copy that file to /usr/local/bin, which requires root privileges

3) Fire up Terminal.app and enter

sudo chmod +x /usr/local/bin/appify

to make appify executable without root privileges.

3) make a chrome.sh file on desktop with content

#!/usr/bin/env bash
/Applications/"Google Chrome.app"/Contents/MacOS/"Google Chrome" --args --profile-directory="Guest Profile"&

4) make sure that the .sh files works by trying this command

sh chrome.sh

5) Run following Commands

cd desktop
appify chrome.sh "My Chrome"

Now this will Create a File called "My Chrome.app" which can be moved into the applications folder and can be used like a normal app.