mdench Posted June 15, 2012 Posted June 15, 2012 Afternoon, Just been writing a script to make an alias to the desktop and open two network locations. tell application "finder" to make new alias file at (path to desktop folder) to ("Macintosh HD:Users:Shared:Music Store") tell application "finder" to open location ("smb://music/mtechshare") tell application "finder" to open location ("smb://music/%username%") The last two require auth against the share with AD username / password. Is there anywhere to specify these items from the initial login? So that the script will auth the user against the mtech share and then place there username into the second mount script so that it will mount there home folder onto the desktop? Cheers guys n gals
mac_shinobi Posted June 15, 2012 Posted June 15, 2012 ref the username issue : Using Applescript to mount SMB shares - Mac OS X Hints
mdench Posted June 20, 2012 Author Posted June 20, 2012 so is it possible to get the script to place the currently logged in username into mount string? The idea is that each student / staff should be able to log onto the macs and hopefully if i get it to work this script will automatically mount the relevant drives. One of which is there own homes folder on a linux box.
Arthur Posted June 20, 2012 Posted June 20, 2012 so is it possible to get the script to place the currently logged in username into mount string? This script may help (it uses 'whoami' to get the username)... www.edugeek.net/forums/mac/46738-macs-drive-mapping.html#post429058
mac_shinobi Posted June 20, 2012 Posted June 20, 2012 (it uses 'whoami' to get the username)... www.edugeek.net/forums/mac/46738-macs-drive-mapping.html#post429058 You're Arthur *tongue in cheek*
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