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

Re: Re : Finder: Delete files


  • Subject: Re: Re : Finder: Delete files
  • From: Hugh Dixon <email@hidden>
  • Date: Tue, 26 Jun 2001 08:18:54 +0000

On 25/6/01 3:28 pm, olivier wrote

> Hi Paul, Michelle, Hugh,
>
> I've try this.. no result ! Why ?
>
> set midnight to date (date string of (current date))
> tell application "Finder"
> delete (every file of (choose folder) whose (modification date) < midnight)
> -- empty trash
> end tell
>

Olivier,

As Nigel and I wrote, if you are using Mac OS 8 (and possibly 9.0 and 9.0.4)
there is a bug in the Finder that prevents your script from working. If you
want this script to work you should upgrade to OS 9.1.

> I write this script, and it's work fine:
>
> set midnight to date (date string of (current date))

... snip
>
> any other suggestion ?

A couple of others have already been posted.

Hugh




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


References: 
 >Re : Finder: Delete files (From: "olivier" <email@hidden>)

  • Prev by Date: Re: Migrating scripting additions to Mac OS X
  • Next by Date: Re: Passing String Variables to Visual Basic within Applescript???
  • Previous by thread: Re : Finder: Delete files
  • Next by thread: migrating script to later OS
  • Index(es):
    • Date
    • Thread