simple script works in 10.8.5 but doesn't work in 10.10.1

Joined
Jan 19, 2015
Messages
1
Reaction score
0
Points
1
Hi,
I'm a newbie in Apple script. My school has script to mount a volume from share folder in Windows computer (named: servicedesk).
It worked normal in OS 10.8.5, but in OS 10.10.1 doesn't.
Can anyone help me to figure out this.
Here is 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
------------------------
Out put on OS 10.8.5:
can list the M drive on /Volumes/
ML.jpg


Out put on OS 10.10.1:
When run cmd: ls /Volumes the servicedesk appear instead M drive

YS.jpg


Grateful for any help
 
Last edited:

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top