View Full Version : A little tweak in AppleScript
bklopfer
Oct 22, 2004, 08:31 PM
I have some applescript applets I have written, but I don't want the little applescript icon popping up in my dock every time the script is launched. The script takes about 1 second to run, and every time it is launched the applescript icon for it appears, then immediately disappears. I don't want it to appear at all! Please let me know if there is a way to get around this! I have Xtools installed on my machine in hopes that I can do it with that, but I haven't figured out a way yet. Someone help, cause it is a great annoyance!
Ben
Sayer
Oct 22, 2004, 09:29 PM
Save the script as an "Application Bundle" first, if it isn't already. Don't check "Stay Open" or "Startup Screen" options.
In the Finder open the script's bundle using right-click or control-click and select "Show Package Contents."
Find and open the "Info.plist" file.
Add a "New Child" and enter: LSBackgroundOnly
For a value select a String or Number and enter 1. Or select Boolean and True.
That will make the icon not appear in the Dock when it is launched.
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.