Hi guys,
I am trying to get this AppleScript I found online to work which is a quick way to mount unmounted volumes. For some reason, the script works just fine for any volume that is does not have a space in the name. For any that does (such as Macintosh HD in my case), I get an error message, which is in the screenshot below. I know the problem has to do with the space, because if I open terminal and run "diskutil mount Macintosh\ HD" (which the forward slash for space), the volume mounts just fine. But, if I try to put a forward slash in the Applescript, I get another error message. Here is both the script and the error message. In my case, "Media"


Any help is appreciated. I did google this with several different search criteria and did not find a clear answer.
I am trying to get this AppleScript I found online to work which is a quick way to mount unmounted volumes. For some reason, the script works just fine for any volume that is does not have a space in the name. For any that does (such as Macintosh HD in my case), I get an error message, which is in the screenshot below. I know the problem has to do with the space, because if I open terminal and run "diskutil mount Macintosh\ HD" (which the forward slash for space), the volume mounts just fine. But, if I try to put a forward slash in the Applescript, I get another error message. Here is both the script and the error message. In my case, "Media"


Any help is appreciated. I did google this with several different search criteria and did not find a clear answer.