Automated Cleanup
Automated Cleanup
- Subject: Automated Cleanup
- From: Christopher Jett <email@hidden>
- Date: Thu, 22 Mar 2001 10:54:31 -0600
I have a couple of webservers that generate PDF reports on the first of each
month for each domain. Inside each domain's folder is a folder called
"reports" into which the new PDF reports are placed. The PDF's are named in
mmddyear.pdf format (next month's PDF would be 04012001.pdf).
What I want to do is create an AppleScript that will go through the hardrive
and delete each PDF that is over 1 year old. For instance, the AppleScript
would be triggered on April 1st of this year and delete every PDF named
04012000.pdf that is on the harddrive. I am a newbie to AppleScript, so how
would I go about doing this?
--
Christopher Jett (email@hidden)
Jett Fuel Productions (
http://www.jettfuel.net)