Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

palebluedot

macrumors 6502a
Original poster
Jun 29, 2008
738
161
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?
 
You could run a terminal command on login:

Code:
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.