I want to have a number of items on my desktop which will be used to launch some apps. E.g. launcher for MacVim with specific settings for each project. I don't know how does it name in Mac OS. I was tried to create executable .sh script but it opens Terminal, it is annoying. What is Mac way to do this?
AppleScript applet. You can use
Open Automator and create an Application with a single Run Shell Script action:
If you want to pass command-line arguments, invoke like this:
This application will launch Firefox and quit instantly (because of the trailing
Alternatively, create an application using AppleScript Editor with the following AppleScript code:
This will simply launch the application. If you want to pass command line arguments, do it like this:
Both ways (Automator and AppleScript applications) work fine and don't keep either Terminal or a script application running for more than a second or so. Using Automator, you can even create a Service if you choose so.