Posted on 05-17-2017 10:05 AM
Hello! I have been using a script that I place in my users dock to map network drives in one click for many years. With the latest Apple security update 10.12.5, it broke. I think it may have something to do with having to accept the pop up about connecting to the network drive.
I also get the error: An error of type -2248 has occurred.
Can anyone advise on how to fix this. Here is one of my scripts:
set my_netbios_servername to "mapdrive:location" set my_url to "smb://" & my_netbios_servername & ":139/Users/" & (system attribute "USER" as string) set my_path to "/Volumes/" & (system attribute "USER" as string) try open location my_url on error display dialog "Your computer could not mount the network drive, please restart your computer and check your network settings. If you need assistance, please contact the HELP DESK at EXT 2027." error number -323 - 2027 end try
Posted on 05-19-2017 06:21 AM
I can run the above script on both 10.12.4 and 10.12.5 with no errors.
I changed "mapdrive:location" to the name of my test server "server01". Does "mapdrive:location" refer to more than just a server name in your script?