-
Applescript :(
Hello!
I've got an applescript which looks like this:
Code:
do shell script "chflags hidden ~/Downloads"
do shell script "chflags hidden ~/Movies"
do shell script "chflags hidden ~/Pictures"
do shell script "chflags hidden ~/Music"
do shell script "chflags hidden ~/Public"
do shell script "chflags hidden ~/Desktop"
do shell script "chmod a-r ~/Downloads"
do shell script "chmod a-r ~/Movies"
do shell script "chmod a-r ~/Pictures"
do shell script "chmod a-r ~/Music"
do shell script "chmod a-r ~/Public"
do shell script "chmod a-r ~/Desktop"
do shell script "mount_smbfs smb://$USER@vs1/student$/$USER ~/Documents"
It's mapped from a shared drive on our mac xserver to the dock, so when users log in, they click the script on the dock and it maps their home drive over the top of the local "documents" folder, ensuring they save to their home folder rather than the local machine. It works fine, apart from when they forget to click it.
I tried for a bit to get it to run on startup, but had all sorts of issues. Does anyone know a method for calling the script during login?
We're running 10.7.5 on both the workstations and server and WGM does the mapping of the script.
Ta,
Ben
-
Try a global login item.
See here for an example: Starting Applications Automatically at Login | Macinstruct - scroll down a bit for the "multiple users" part.