Here is what I want to achieve:
When a user logs off of a computer I want a script that will go through the users Home directory and subfolders deleting certain files (such as jpg, gif, psd, and so on).
Here is what I have so far:
with timeout of 3600 seconds – 1 hour
tell application “Finder” to delete (every file of entire contents of �
(choose folder) whose name extension is “gif”)
tell application “Finder” to delete (every file of entire contents of �
(choose folder) whose name extension is “tif”)
end timeout
The problem that I am having is I have to select a folder for each file type I want deleted, how do I get it to delete all files that I want deleted in the home directory automaticly for that users session?
does anyone know the “smart” way to do this? I need it to work for about 100 different users.
Any and all suggestions are greatly appreciated.
Steve W.