View Full Version : Send file to all users desktop
Flyinace2000
Dec 8, 2008, 08:58 AM
I need to distribute a .webloc file to all students at on of my K-4 buildings. The homedir structure is:
HomeDirs/Students/GRADE YEAR/USERNAME/
There are 5 grade years folders and about 100 students in each. Where should I start?
Thanks
-Will
Sayer
Dec 8, 2008, 09:54 AM
Applescript would probably be the quickest. Maybe Automator. If all the home folders are on one server that's easy enough to do.
If they are on different Macs, then if you had Apple Remote Desktop (ARD) you could use that to send the files from one central location.
Once the problem is more clearly defined, a solution can be described.
Flyinace2000
Dec 8, 2008, 10:25 AM
Applescript would probably be the quickest. Maybe Automator. If all the home folders are on one server that's easy enough to do.
If they are on different Macs, then if you had Apple Remote Desktop (ARD) you could use that to send the files from one central location.
Once the problem is more clearly defined, a solution can be described.
All the HomeDirs are on one server. I am very new to Apple Script. Is there a template i can use to modify.
Sky Blue
Dec 8, 2008, 10:31 AM
You could use propagator:
http://acletras.com/2008/04/22/propagator-an-os-x-admins-friend/
Flyinace2000
Dec 8, 2008, 10:46 AM
You could use propagator:
http://acletras.com/2008/04/22/propagator-an-os-x-admins-friend/
All the download links seem to be dead. Anyone have a copy.
ke5go
Dec 13, 2008, 10:55 PM
Did you ever get this done?
Assuming you have the master.webloc in your home directory, then something like the following tcsh script would copy that file to each of the students' directories.
cd HomeDirs/Students/
foreach grade (`find . -maxdepth 1 -type d -print`)
foreach student (`find ./$grade -maxdepth 1 -type d -print`)
echo cp ~/master.webloc ./$grade/$student/.webloc
end
end
After you have this working and it displays all of the commands to be executed the way you want, then just remove the "echo" from the command and it will actually execute the commands.
JimS
Flyinace2000
Dec 17, 2008, 06:44 PM
Did you ever get this done?
Assuming you have the master.webloc in your home directory, then something like the following tcsh script would copy that file to each of the students' directories.
cd HomeDirs/Students/
foreach grade (`find . -maxdepth 1 -type d -print`)
foreach student (`find ./$grade -maxdepth 1 -type d -print`)
echo cp ~/master.webloc ./$grade/$student/.webloc
end
end
After you have this working and it displays all of the commands to be executed the way you want, then just remove the "echo" from the command and it will actually execute the commands.
JimS
I will give this a shot tomorrow. Thanks.
For now i simply put one copy in in each teachers hand out folder. Thanks again
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.