I can successfully map my Windows share (SMB) file on MacOS through Finder > GO > Connect to Server …. I want to automate this process by creating a simple AppleScript (MapDrive.scpt) file, so that anyone can easily run this script to map the drive location easily and quickly. I tried to record the process with the help of Record button on Script Editor, but getting strange script, and also throwing error - apple script error cant get 'connect to server'. Any suggestions or any other method, script, terminal command to automate this issue. Can I create a link to map network drive? How? Thanks
AppleScript to Map Network Drive (Finder > GO > Connect to Server..)
Check out the mount volume
command, part of AppleScript’s StandardAdditions.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I wrote an ebook about remote drive mount AppleScript.
https://piyomarusoft.booth.pm/items/3909458
Contents: --How to check the location of each drive --Check file server existence by Randezvous --How to write "mount drive" command.