On 2/7/05 2:38 PM, "Nigel Stanger" <[EMAIL PROTECTED]> wrote:

> Is there any particular reason why the following doesn't work?
> 
> make new draft window with properties
>    {content:"blah", subject:"foo", account:Exchange account id 1}
> 
> I get "Microsoft Entourage got an error: Some data was the wrong type."
> 
> Conversely, the following works fine:
> 
> make new draft window with properties
>    {content:"blah", subject:"foo", account:POP account id 1}
> 
> Thanks!

Are you sure you have the account ID number correct? At least among
true-blue mail accounts (POP, IMAP, Hotmail), there is no duplication of IDs
even though these are supposedly different classes. Evidently there's really
a hidden 'mail account' superclass with just one set of IDs. So you could
never have a POP account id 1 and an IMAP account id 1, for example.

Now just maybe the new (2004) WebDAV Exchange accounts do not fill the same
category. These Exchange accounts may be different from mail accounts. If
you really have an id 1 there as well as in POP accounts, that would seem to
be the case. But then that might indicate that they somehow can't be the
(mail) account for draft windows. I don't ha ve an Exchange account so I
can't test.

But my guess would be that it's a bug - someone forgot to hook up Exchange
accounts to the AppleScript account property of draft window. How about if
you make a new draft window (message window) in the UI with the Exchange
account. What does

    get account of window 1

give you as a result?

-- 
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. 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/>

Reply via email to