Re: Re : Finder: Delete files
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
**********************************************************************