Hi Guys
I wish to learn Apple Script at some time but I need to make something fast.
I want to make a script that deletes a users desktop file and then logs off.
This is for a corprate computer that a single user account is used for lot's of people. It just means that we can shedule it to keep things clean.
Thanks
Mike
If you enable "Remote Login" on each of the hosts you need to clean up, this enables you to log in via a terminal over SSH. You can then just do something like the following (this may or may not work, don't blame me if it does bad stuff):
#!/bin/bash
for HOMEDIR in `ls -1 /Users`; do
for ITEM in `ls "$(HOMEDIR)/Desktop/"`; do
rm -rf "$(ITEM)"
done
done
I'd much rather an Apple Script that we could shedule on the actuall computers. I 'm not great with the Unix side of things. I'd like to have something simple that doesn't require someone to sit down and do it.
Thanks