Hi all,
I have a problem that impact to over 50 iMacs in our school. Before when the iMacs are in OS 10.8.5, the script working well, the output is exactly what I need.
What I need is mount a shared folder from Windows server, and treat it as a volume in iMac. Then create a symlink to user's desktop.
- in OS 10.8.5, after run "mount volume", I can see the "M" drive in terminal by command:
- in OS 10.10.1, after run "mount volume", I just see the "winserver" instead "M" in the terminal by command:
This drive me to crazy 
Does anyone know how to rid this? Thanks in advance.
I have a problem that impact to over 50 iMacs in our school. Before when the iMacs are in OS 10.8.5, the script working well, the output is exactly what I need.
What I need is mount a shared folder from Windows server, and treat it as a volume in iMac. Then create a symlink to user's desktop.
Code:
set loggedInUser to do shell script "whoami"
tell application "Finder"
try
mount volume "smb://winserver/M"
do shell script "ln -sf /Volumes/M/ ~/Desktop/M"
end try
end tell
- in OS 10.8.5, after run "mount volume", I can see the "M" drive in terminal by command:
Code:
IMAC009:~ studentA$ ls /Volumes/
M Macintosh HD
Code:
IMAC009:~ studentA$ ls /Volumes/
winserver Macintosh HD
Does anyone know how to rid this? Thanks in advance.