Carter Posted October 12, 2010 Posted October 12, 2010 Below is an Apple Script I have done up that can be used as a login script to mount a share. You can add multiple shares if you wish to the script. The script will poll for the logged in user/password then mount the share. All you need to replace in the script below is "Server" & Share" the left should be left as is. To test, if you login using an AD user or even an OD user then run the script you will see the share mount. set MyName to do shell script "whoami" tell application "Finder" mount volume "smb://SERVER/SHARE/" & MyName & ";" & MyName & ":password" end tell 2
furby Posted April 26, 2013 Posted April 26, 2013 (edited) Old topic but this was just what I was looking for (mounting shares never seems to work from profile manager). Can I ask though, how do you set this to be a login item? Profile manager only supports shells scripts so I wasn't sure where to add it Edit/Made a workaround, exported it as an Application and then added it to the login items. I can't now figure out how to add it to the dock though (in profile manager). All I can see is the stupid question mark Edited April 26, 2013 by furby
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now