I keep my music stored on an AirPort volume (I have an Air and too much music for the HD). I'm trying to write an AppleScript to check if my volume is mountedand if not, mount itbefore launching iTunes. Because the volume is a partition on the hard drive, I can't figure out how to reference it directly.
This works okay, but it's crude: it requires I pick the Music partition/volume from a list before mounting it, and if it's already mounted, mount a disk I don't want to mount.
(The full Music drive address is "afp://MyVolume._afpovertcp._tcp.local/Music Storage")
The ideal solution would check to see if I'm connected to my Wi-Fi network, mount the disk, then mount iTunes, but I'm really at a loss to do that. Any help to make this work better would be appreciated. I could do this as an AppleScript, Terminal script or Automator app.
Thanks!
This works okay, but it's crude: it requires I pick the Music partition/volume from a list before mounting it, and if it's already mounted, mount a disk I don't want to mount.
Code:
mount volume "afp://MyVolume._afpovertcp._tcp.local"
launch application "iTunes"
(The full Music drive address is "afp://MyVolume._afpovertcp._tcp.local/Music Storage")
The ideal solution would check to see if I'm connected to my Wi-Fi network, mount the disk, then mount iTunes, but I'm really at a loss to do that. Any help to make this work better would be appreciated. I could do this as an AppleScript, Terminal script or Automator app.
Thanks!
