Created
January 6, 2017 20:21
-
-
Save robotsandcake/83a2bfd87490fa5ac535c64a0aa898d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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