On 11/15/03 7:59 AM, "Jeffrey Berman" <[EMAIL PROTECTED]> wrote:
> tell application "Microsoft Entourage" to �
> get folders of default mail account
> DateMatch for result
That won't work if the default mail account is a POP account. In that case
it doesn't have any folders. Just so you know. Probably you're just doing
this for yourself and know that it will always be an IMAP account? (In which
case why not just hard-code it in?) Also you haven't set a variable
(FolderList) to the result, so your handler has nothing to operate on. The
general case would be:
set defAccount to default mail account
if class of defAccount = POP account then
set FolderList to every folder -- i.e. top-level local folders
else -- IMAP or Hotmail or Exchange
set FolderList to every folder of defAccount
end if
--
Paul Berkowitz
MVP Entourage
Entourage FAQ Page: http://www.entourage.mvps.org/toc.html
PLEASE always state which version of Entourage you are using - 2001 or X.
It's often impossible to answer your questions otherwise.
--
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/>