hide script icon when running

hi (again :slight_smile:

just a simple question:
is there a way to hide the script icon when running the script?

thanks in advance!

The easy way (if your script is amenable to this) is to just make it an background app. That means no Dock Icon and no Menu bar. (I usually have it route any dialogs through the Finder if I am doing this.)

To do this use Script Editor 2 and save the script as an Application Bundle so it is of the form of a nomral OS X app package. Edit the file yourscript.app/Contents/Info.plist and add the entry LSBackgroundOnly Boolean Yes. This is a switch that tells OS X to run an app as background only. Just be sure you thing about how to manipulate and quit the thing if it is going to stay running (issuing killall applet from the terminal will do in a pinch).

ok… i saved it as an application bundle.
but i can’t find “Contents/Info.plist”.
where’s that hidden?

s.

Right click or Control-click the icon of the application in the Finder. Select “Show Package Contents”, get a folder labeled “Contents”. It’s in there.