On 24/4/02 10:30 pm, "Adam Bailey" 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!
Sure you can.
Define a new schedule. Set the trigger to be 'on shutdown'. Set an action to
be 'run a script' and set the script to be something like:
Tell app "microsoft entourage"
Delete every message of folder "deleted items" where it's category contains
{category "junk"}
every message of folder "deleted items" where it's time sent < (current
date) - (5 * days)
End tell
(that should be just two lines between the 'tell� - end tell' statements)
--
Barry Wainwright
<http://www.barryw.net>
You can be replaced with a model that flushes!
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>