MacOS – How to minimise the terminal automatically when it is running a shell script

command linemacospythonterminal

I have a shell script which runs a Python Program. I created the shell script so that the users of my program may simply double click it to run my program.

When the shell script is executed; the terminal loads in front of the GUI of the Python Program and that is bothersome. Is there anyway to ensure that the Terminal is minimised by default when the shell script runs?

Best Answer

Ok. So I found out a solution.

Turns you can simply use Automator and save the shell script as an App.

Just open Automator; select "Applications" and then "Run a Shell Script"