Unable to mount hidden smb share after 10.9 upgrade

koepke
New Contributor II

So I have a little script that maps a user share from a windows server using the $3 for the current user. Had a few users upgrade to Mavericks and the script fails for them. I can run the same script in AppleScript Editor just fine without the $3. Anyone else have issues using that parameter in Mavericks?

Here is my script:
tell application "Finder" mount volume "cifs://usershareserver/home$/$3"
end tell

3 REPLIES 3

bentoms
Release Candidate Programs Tester

$3 only works at login.

Is that when your running it?

I use an AppleScript app @ login to map drives & users use it when logged in to map drives (say over a VPN).

Details of how are here in my blog, perhaps you could use the same mechanism to get the username instead of $3?

http://macmule.com/2011/09/08/how-to-map-drives-printers-based-on-ad-group-membership-on-osx/

koepke
New Contributor II

Awesome post. Mapping other shares based on AD group membership was also on my to-do list. This looks to be exactly what I need. Thank you!

bentoms
Release Candidate Programs Tester

Cool. Glad it helps!