Jump to content

Recommended Posts

Posted

Hello!

 

I've got an applescript which looks like this:

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...