Skip to content

Instantly share code, notes, and snippets.

@robotsandcake
Created January 6, 2017 20:21
Show Gist options
  • Select an option

  • Save robotsandcake/83a2bfd87490fa5ac535c64a0aa898d0 to your computer and use it in GitHub Desktop.

Select an option

Save robotsandcake/83a2bfd87490fa5ac535c64a0aa898d0 to your computer and use it in GitHub Desktop.
delay 10
-- Change the disk name to your Volume name.
set diskName to "Music"
tell application "System Events" to set diskNames to name of every disk
if diskName is in diskNames then
display dialog quoted form of diskName & " is already mounted." & return buttons {"OK"} default button 1
else
-- Change the credentials and olume location to suit your needs.
mount volume "afp://username:[email protected]/Music"
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment