I want to be able to save a file in a way that opening it with a regular double-click runs it. Also is there a mac equivalent of @ECHO OFF that makes it so no text shows up in terminal?
I want to be able to save a file in a way that opening
Share
Probably the easiest thing to do would be to wrap your script or program in a tiny bit of AppleScript:
Then save it as an application and it will behave like any other OSX application.
The shell shouldn’t be printing the commands as they’re run unless you’re supplying the
-xswitch so I’m not sure what you want@ECHO OFFfor.