tell application "Finder"
if disk "grpshr" exists then -- error
-- WORKAROUND: if POSIX file "/Volumes/grpshr" exists then
else
try
mount volume "smb://192.168.14.2/grpshr"
end try
end if
end tell
After the 1st mounting success and ejecting the mounted volume, the above error line always tells that the mounted volume exists despite of ejecting the volume.
if disk "grpshr" exists then -- error
-- WORKAROUND: if POSIX file "/Volumes/grpshr" exists then
else
try
mount volume "smb://192.168.14.2/grpshr"
end try
end if
end tell
After the 1st mounting success and ejecting the mounted volume, the above error line always tells that the mounted volume exists despite of ejecting the volume.