Auto Remount of Volumes

I’ve been trying to get an AppleScript to remount volumes if they become unmounted due to lost connections due to wifi interference or other problems on the network.

I cannot get my code to run, I keep getting the error “Expected expression, property or key form, etc. but found unknown token.”

on idle
tell application "Finder" 
    set isConnected to disk “Books” exists 
    set isConnected2 to disk “Download” exists
end tell
if isConnected = false then
    try
    mount volume “Books” on server “Media-Monger”
    end try
end if
if isConnected2 = false then
    try
    mount volume “Download” on server “Media-Monger”
    end try
end if
return 25
end idle

You must use dumb quotes, i.e. "

Thanks for that insight, it made everything work! I would never have known to troubleshoot the type of quotation marks I used.

Glad it helped.

Applescript is funny that way. The cryptic error messages don’t often help but usually the ‘unknown token’ type error refers to something like that.