Mapping drivers for network users

Discussion in 'Mac OS X Server, Xserve, and Networking' started by NS-RED, Nov 14, 2014.

  1. NS-RED macrumors newbie

    Joined:
    Nov 14, 2014
    #1
    Hi
    we are trying to automatically map network drives for our users, the share folder is the same name as the username.

    In the past we were using the below script which has worked, but now we have upgraded our OS to Yosemite the script is no longer working properly.


    Thanks for any help much appreciated.
     
  2. kryten2, Nov 14, 2014
    Last edited: Nov 14, 2014

    kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    The mount volume and do shell script commands are part of StandardAdditions. Remove the tell "Finder" block, it's not needed.
    Unexpected errors can occur when those commands are used in a tell application "Application" block.
    Wrapping statements in try statements without an error handler isn't really helpful in debugging the script if any of those statements causes an error as all errors will be ignored.
     
  3. kladda macrumors newbie

    Joined:
    Sep 25, 2011
    #3
    there is some apps for that if you are in no mood to work on that script...

    Just search for Network drives on mac app store.
     

Share This Page