Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
simple script works in 10.8.5 but doesn't work in 10.10.1
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="luckystone" data-source="post: 1635129" data-attributes="member: 342017"><p>Hi, </p><p>I'm a newbie in Apple script. My school has script to mount a volume from share folder in Windows computer (named: servicedesk).</p><p>It worked normal in OS 10.8.5, but in OS 10.10.1 doesn't.</p><p>Can anyone help me to figure out this. </p><p>Here is script:</p><p>-----------</p><p>set loggedInUser to do shell script "whoami"</p><p>tell application "Finder"</p><p> try</p><p> mount volume "smb://servicedesk/M"</p><p> do shell script "ln -sf /Volumes/M/ ~/Desktop/M"</p><p> end try</p><p>end tell</p><p>------------------------</p><p>Out put on OS 10.8.5:</p><p>can list the M drive on /Volumes/ </p><p><img src="https://lh3.googleusercontent.com/-IHbqG7_oSzI/VL3nQiDvwBI/AAAAAAAAABo/6X75_9o4yn4/s512/ML.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Out put on OS 10.10.1:</p><p>When run cmd: ls /Volumes the servicedesk appear instead M drive</p><p></p><p><img src="https://lh6.googleusercontent.com/-caOvzLNBUZM/VL3nQq6618I/AAAAAAAAABs/yyhobHHWilI/s696/YS.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>Grateful for any help</p></blockquote><p></p>
[QUOTE="luckystone, post: 1635129, member: 342017"] 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/ [IMG]https://lh3.googleusercontent.com/-IHbqG7_oSzI/VL3nQiDvwBI/AAAAAAAAABo/6X75_9o4yn4/s512/ML.jpg[/IMG] Out put on OS 10.10.1: When run cmd: ls /Volumes the servicedesk appear instead M drive [IMG]https://lh6.googleusercontent.com/-caOvzLNBUZM/VL3nQq6618I/AAAAAAAAABs/yyhobHHWilI/s696/YS.jpg[/IMG] Grateful for any help [/QUOTE]
Verification
What is Apple's smallest desktop computer called?
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
simple script works in 10.8.5 but doesn't work in 10.10.1
Top