Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

LuckyStone

macrumors newbie
Original poster
Jan 19, 2015
1
0
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.
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
- in OS 10.10.1, after run "mount volume", I just see the "winserver" instead "M" in the terminal by command:
Code:
IMAC009:~ studentA$ ls /Volumes/
winserver		Macintosh HD
This drive me to crazy :mad:
Does anyone know how to rid this? Thanks in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.