A little tweak in AppleScript

Discussion in 'Mac Programming' started by bklopfer, Oct 22, 2004.

  1. macrumors newbie

    Joined:
    Oct 22, 2004
    #1
    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
     
  2. macrumors 6502a

    Sayer

    Joined:
    Jan 4, 2002
    Location:
    Austin, TX
    #2
    Easy

    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.
     

Share This Page