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