ref the username issue :
Using Applescript to mount SMB shares - Mac OS X Hints
Just been writing a script to make an alias to the desktop and open two network locations.
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?Code: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%")
Cheers guys n gals
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)