• 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: Finder: Delete files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder: Delete files


  • Subject: Re: Finder: Delete files
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 25 Jun 2001 05:44:22 -0700

On 6/25/01 12:37 AM, Olivier Berquin <email@hidden> wrote:

>tell application "Finder"
> delete (every file of folder (choose folder) whose ,
> (modification date) < ((current date) - (1 * days))) -- 24 hours
> -- empty trash
>end tell

The problem is that date arithmetic does not return a date, but returns
the number of seconds between dates.

Paul's suggestion is elegant.

--Michelle


----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: How to get the index of an item in a list
  • Next by Date: Re: Finder: Delete files
  • Previous by thread: Re: Finder: Delete files
  • Next by thread: Re: Finder: Delete files
  • Index(es):
    • Date
    • Thread