I need to have a network drive mapped as soon as it is available.
I had a script running in an older version of MacOs that used to work fine, but it is not working on Sonoma.
I tried to run the command and it says mount: /NAS: invalid file system.
Any ideas ?
Thanks
I had a script running in an older version of MacOs that used to work fine, but it is not working on Sonoma.
on idle
tell application "Finder"
if not (disk "NAS" exists) then
try
do shell script "mount -t smbfs //user: password@server-ip/NAS /NAS"
on error errStr number errorNumber
return 300
end try
end if
return 900
end tell
I tried to run the command and it says mount: /NAS: invalid file system.
Any ideas ?
Thanks
Last edited: