Re: Entourage Custom Views
Re: Entourage Custom Views
- Subject: Re: Entourage Custom Views
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 20 Jul 2005 11:10:59 -0700
- Thread-topic: Entourage Custom Views
On 7/20/05 10:41 AM, "Todd Geist" <email@hidden> wrote:
> Ideally I would like to find all messages that are
>
> older than a certain date
> And
> not in one of several folders
>
> Do I have to loop through all the folders folders, like below or is there
> an easier way?
Unfortunately, 'message' in AppleScript-space in Entourage is an element
only of a 'folder', not of the application, in spite of the fact that every
message has its own unique ID. I've been agitating for 'message' as element
of the application for aeons, but still no good. So unless you're looking
for a message with a specific ID, I'm afraid you do have to look through
each folder in which you have an interest. Also note that (every folder)
gets you only top-level local folders ("On My Computer"), not their
subfolders (for which you need a recursive handler) or folders of IMAP,
Hotmail or Exchange accounts. Again, unless you're looking for a specific
folder by ID, 'folder' is an element only of its containing folder, except
for top-level folders, and top-level server folders of IMAP, Hotmail and
Exchange accounts.
>
> Thanks again!
>
> tell application "Microsoft Entourage"
>
> set theFolders to every folder
> repeat with i from (count theFolders) to 1 by -1
> set this_folder to item i of theFolders
>
> set theMessages to (every message of this_folder where time received
> is less than date "Monday, August 4, 2003 12:00:00 AM")
> repeat with i from (count theMessages) to 1 by -1
> set this_messsage to item i of theMessages
>
> --do some stuff here
>
> end repeat
>
> end repeat
>
> end tell
>
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden