Skip to content

Instantly share code, notes, and snippets.

@signed8bit
Created March 10, 2013 14:34
Show Gist options
  • Save signed8bit/5128796 to your computer and use it in GitHub Desktop.
Save signed8bit/5128796 to your computer and use it in GitHub Desktop.
An AppleScript to mount an AFP volume where your iTunes media lives followed by a delayed startup of iTunes once the volume is available.
tell application "Finder"
mount volume "afp://user:password@nas-server/Media"
repeat 3 times
delay 5
if disk "Media" exists then
tell application "iTunes"
activate
end tell
exit repeat
end if
end repeat
end tell
@signed8bit
Copy link
Author

Save as an .app and add as a login item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment