Title: Re: AppleScript to enhance shutdown schedule?
On 4/24/02 2:30 PM, "Adam Bailey" <[EMAIL PROTECTED]> wrote:
> Greets,
>
> I'd like to improve the flexibility of a shutdown schedule. Normally I have
> Entourage set to delete the mail in my Deleted Items folder after two weeks,
> but there is some mail (Junk, mailing lists) I'd like to delete more
> frequently. But the scheduling function won't let me add that kind of
> specificity.
>
> So, can I set the shutdown schedule to run a script that will delete all
> messages in the Deleted Items of a particular category older that a certain
> date? What would the syntax of the script be?
>
> TIA!
The first line has to be outside an Entourage tell block. it will keep updating to be 3 days 9or whatever you set) earlier than whenever you run the script. If this is an IMAP account then the folder is
IMAP deleted items folder of IMAP account "Account Name"
rather than
deleted mail folder
-----------------------------
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
-------------------------
--
Paul Berkowitz
- Re: AppleScript to enhance... Paul Berkowitz
- Re: AppleScript to enhance... Beth Rosengard
- Re: AppleScript to enhance... Adam Bailey
- News servers in folder list Mr Tea
- Re: News servers in folder lis... Diane Ross
- Re: News servers in folder... Mr Tea
- Re: News servers in folder... Christian M. M. Brady
- Re: News servers in folder lis... Allen Watson
- Re: AppleScript to enhance shutdown sch... Rich Hansen
- Re: AppleScript to enhance shutdown sch... Eric Hildum
- Re: AppleScript to enhance shutdown schedule? Paul Berkowitz
- Re: AppleScript to enhance shutdown schedule? Beth Rosengard
