Title: Re: AppleScript to enhance shutdown schedule?
On 4/25/02 10:31 AM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:

--------------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----------------

Hi Paul,

I’d like to try this but have next to no experience with scripts and have a few questions:

Is there a specific date format I need to use?
When I fill in the current date, do I remove or keep the parentheses?
Same when I change the number of days?
Is “Something” the only other thing I have to change?
Do I leave it (the category name, that is) in quotes?
Is it “deleted mail folder” or “deleted items folder”?

I did copy the script into the Script Editor, made some of the changes and ran a syntax check to see what would happen.  It stopped on the word “time” and said “Expected end of line, etc., but found property.”  The script at that point looked like this:

set sentDate to (April 25, 2002) - (32 * days) -- will keep updating

tell app "Microsoft Entourage"

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

end tell

In case it’s not clear, what I want to do is delete all messages in my Deleted Items folder that fall into the category “Orchid” when they’re more than 32 days old.  I appreciate your help.

Beth

Reply via email to