• 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
Re: script to delete files based on date in file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script to delete files based on date in file name


  • Subject: Re: script to delete files based on date in file name
  • From: Jay Young <email@hidden>
  • Date: Tue, 16 Jul 2002 19:30:34 -0500

Hi Heather,

Can you give us some examples of the file names? Are they something like:

Art2-12-02
Scans3-14-02

or are they different? Can you show us each way they might be written?

And do you always look in the same folders when searching for these files?

Thanks!

Jay

On Wednesday, July 17, 2002, at 12:55 AM, email@hidden wrote:

I am not getting very far on writing a script that looks at all the files in series of
folders and each file name contains a
date in it of either 6 or 4 digits. I have a script that looks at the date to place the
files on a Quark page and was hoping
it would be as easy to find one to look at it and then delete those files after they are a
certain age.

Generally, how can I reference the file name containing the date, coerce it to a date and
then delete files based on teh
age, say anything older than 2 weeks old gets deleted.

I have searched for various ways, but they only deal with one folder or one file based on
modification date and that
doesn't always work correctly.

Thanks for any tips you all might be all to provide.

Heather
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >script to delete files based on date in file name (From: email@hidden)

  • Prev by Date: Re: Passing *possible* variables to a handler
  • Next by Date: RE:script to delete files based on date in file name
  • Previous by thread: script to delete files based on date in file name
  • Next by thread: RE:script to delete files based on date in file name
  • Index(es):
    • Date
    • Thread