This script works great for me in terms of mapping drives. I was even able to map down to subdirectories (running Mavericks). I can access the shared subdirectory from Finder > Computer. The challenge I'm having is the alias created on the desktop is broken for the volume mapped to a subdirectory in the share:
ell application "Finder"
try
mount volume "SMB://chico.vanguard.vashonsd.org" & "/" & "staff" & "/" & loggedInUser & "/"
do shell script "ln -s /Volumes/" & "home" & " ~/Desktop" ---- this is not successful in creating the alias --> error number -10004
end try
try
mount volume "smb://flab-server/pickup/"
do shell script "ln -s /Volumes/" & "Pickup" & " ~/Desktop"
end try
end tell
The icon created for the Pickup share is the shared drive icon. I get just a blank page icon for the other share. Any ideas?