Hi all,
I have created a script to grab the logged in User's shortname and AD Home and create Symlinks on the desktop to their home and a couple of group shares.
However I have discovered that MSOffice doesn't like symlinks but Aliases work fine!
My bash scripting is weak at the best of times but my AppleScript is non-existent!
Here's what I currently have - if anybody can help me convert the 'ln' to 'make_alias' I'l buy you a beer at the JNUC :-)
#Get Current User
user=$(logname)
#GET AD Home Path and cleanup
userHome="/Volumes/"$((dscl "/Active Directory/LIMERICKSC/All Domains" -read /Users/$user SMBHome | awk '{gsub(//,"/");print}' | awk '{gsub(//," ");print$2}') | cut -d '/' -f4-)
#Just Checking...
echo $user
echo $userHome
#Symlink Home and other shares
ln -fhs "$userHome" "/Users/$user/Desktop/H_Drive"
ln -fhs "/volumes/shared" "/Users/$user/Desktop/S_Drive"
ln -fhs "/volumes/MacServer/Mac Learners/" "/Users/$user/Desktop/Mac_Learners"