• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Automated Cleanup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


  • Prev by Date: Re: Creating folders (directories) without the Finder
  • Next by Date: Re: Automated Cleanup
  • Previous by thread: Re: short & sweet script: delete to end
  • Next by thread: Re: Automated Cleanup
  • Index(es):
    • Date
    • Thread