I have a NAS with our iTunes library on it. Sometimes the NAS goes offline. If I try to open iTunes without knowing that, I get the missing library warning, then I have to manually mount the NAS share. That gets old. It gets even older for my wife, who doesn't always remember her iTunes library is not on her computer. So I have set up the following Applescript Code: tell application "Finder" mount volume "afp://xxxx:firstname.lastname@example.org/Stuff" end tell tell application "iTunes" activate end tell This works great. So I saved it as an app called "iTunes", gave it the actual iTunes icon and dragged it into my dock. That's when I found out OSX doesn't like 2 apps with the same name on the dock, even if one of them (the applescript app) isn't currently running. It mounts the share but won't load iTunes. So I renamed the script "iTunes Launch". Now it works fine, but I keep clicking the "iTunes Launch" app, thinking it's iTunes, when iTunes is already running. I'd rather not have yet another icon on my dock anyhow (and it will confuse the wife), so now I'm wondering if there's a way to make a script that will detect when iTunes is launched, somehow pause the launch to mount the afp share, then continue to load iTunes after the share is mounted, without having 2 icons on my dock. Make sense? Is it doable? Thanks! p.s. I somehow figured out how to set up autofs, thinking it would automatically mount my share when iTunes called for it, but that doesn't seem to happen, at least with Lion. I even tried setting it up in fstab .this doesn't work either.