Making an Apple Script have no Dock Icon

Discussion in 'Mac Programming' started by palebluedot, Nov 29, 2008.

  1. palebluedot macrumors 6502a


    Jun 29, 2008
    I created an Apple script to automount my two externals connected to the Time Capsule on boot. The problem that annoys me is it pops up the apple script icon when it launches on boot on the dock (I made the apple script into an application that is in my startup prefs under accounts).

    Is there a way to make applescript headless/have no dock icon/nothing visible.

    I basically want these drives to mount when my computer starts/is on my network and not show/do anything. Call me picky but i'm curious if this can be done?
  2. menthol moose macrumors regular

    Jul 20, 2006
    You could run a terminal command on login:

    osascript /Path/To/Script.scpt
    It'll execute the AppleScript and subsequently mount the drives. I forget how to execute a terminal command in OS X on login, but if you can find out how to do that, it'll be easy from there.

    Also, make sure you aren't compiling the script and make sure you're just saving it as a script. Running the osascript command definitely won't spawn an icon in the dock, then.

Share This Page