Mount SMB share
Hi,
My aim is to create an applescript whereby macbook users can mount their windows home directory. These devices are BYOD so are not connected to the domain.
I have had some success but need some assistance from an expert.
The script below mounts a volume and the user is able to access their home folder. However, the volume shows the root of the pupilshare$ and I want it to show pupilshare$/username
Also, how do I get the finder window to pop up automatically once the volume has mounted, showing their home directory?
This is the information from the 'replies' debug window:
mount volume "smb://username:password@server/pupilshare$/username"
--> file "pupilshare$:"
set username to ""
set pass to ""
set server to "server"
set share to "/pupilshare$/"
set dialogUser to display dialog "Enter your user name" default answer ""
set the username to the text returned of dialogUser
set dialogPass to display dialog "Enter your password" default answer ""
set the pass to the text returned of dialogPass
mount volume "smb://" & username & ":" & pass & "@" & server & share & username
Thanks in advance
Mac mini (Mid 2011), OS X Mountain Lion (10.8.2)