• 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: Files older than
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Files older than


  • Subject: Re: Files older than
  • From: Vince Angeloni <email@hidden>
  • Date: Sat, 12 Apr 2008 15:14:44 -0500

Try something like this:

tell app "Finder"
set mylist to every file of (path to desktop) whose creation date > (current date - (14 * days))
end tell

hth
vince


Hello all,
I have a specific circumstance where I need to delete files older than a certain age. Would there be a way to find files that are older than two weeks, for example?

This has to be a relative date. I can't say "find files created before April 1, 2008".

Thanks in advance for any assistance.
--
Regards,
Alain Paradis
Registered Graphic Designer

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Files older than
  • Next by Date: Re: Files older than
  • Previous by thread: Re: Files older than
  • Next by thread: Problems with the group mailer
  • Index(es):
    • Date
    • Thread