On 7/9/02 6:56 PM, "Eric Prentice" <[EMAIL PROTECTED]> wrote:

> I'm wondering if there is a good AppleScript or a rule that will delete all
> messages older than 90 days. There are over 100 folders so I'm not excited
> about using a schedule but having to setup one for each folder.

I asked the exact same question a few weeks ago and Allen Watson was kind
enough as to write me a little AppleScript that fixed me right up. I put all
the folders in a folder called "mailing lists" and the script does its thing
on that on a schedule. This way I can subscribe and resubscribe to mailing
lists at will and as long as they are subfolders of my "mailing lists"
folder they will be cleaned out on schedule.

Here's the code that Allen provided. I don't know much about AppleScript to
tell you how to adapt it to your needs, maybe someone else (Allen) can help.
But I can tell you it works:

tell application "Microsoft Entourage"
����set listFolder to folder "Lists"
����set folderList to {listFolder} & (every folder of listFolder)
����set twoDaysAgo to (current date) - (2 * days)
����repeat with f in folderList
��������delete (every message in f where its time sent < twoDaysAgo)
����end repeat
end tell

I'm glad to see I'm not the only one who thinks this is "a good thing." :-)

-- 
Judi Sohn
[EMAIL PROTECTED]
http://www.momathome.com


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

Reply via email to