Title: Re: AppleScript to enhance shutdown schedule?
On 4/25/02 9:01 AM, I wrote:

> Whoa! I sent you a perfect unbuggy solution at the same time as Barry did.
> You've just ignored it the whole time. Did you never get it?

Well, I've noticed before you never reply to me. Never mind.

Here it is yet again, in HTML, so you won't have line ending problems when pasting into Script Editor:

--------------script---------------


set sentDate to (current date) - (3 * days) -- will keep updating

tell app "Microsoft Entourage"

    delete every message of deleted mail folder where its category contains {category "Something"} and its sent time is less than sentDate

end tell

---------end script----------------


BTW, "its" works just fine. It's actually the correct syntax, Barry notwithstanding. Unfortunately, Apple allows "it's" to function in its place, by coercion, instead of erroring. AppleScript is a little too forgiving that way at times.


--
Paul Berkowitz

Reply via email to