Yosemite run "mount volumes" is not same as Mountain Lion
I have a script to mount the shared folder from Windows server (named: servicedesk) as a volume in Yosemite iMac.
-- -------begin script-----
set loggedInUser to do shell script "whoami"
tell application "Finder"
try
mount volume "smb://servicedesk/M"
do shell script "ln -sf /Volumes/M/ ~/Desktop/M"
end try
end tell
----------End script--------
When run the script on Mountain Lion 10.8.5 iMac, I can list the "M" when run the command in terminal: ls /Volumes/
But when run the script on Yosemite iMac, It's show "servicedesk" instead "M" when run the command in terminal: ls /Volumes/
I don't know why it is difference and can't do anything to create symlink to the Desktop now. Please help????
Thank you,
iMac, OS X Yosemite (10.10.1)