Skip to main content

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 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/


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!


Cool. Glad it helps!


Reply