G'day Folks

I've just started using Entourage as a result of being called upon to write
some AppleScripts to send emails via Entourage from FileMaker Pro databases.
I admit to still running trainer wheels with AppleScript but I've managed
all I've need to do this far.

What I need to do is to create a new message with the addresses [to & bcc],
subject and possibly message body supplied by FileMaker.  I can get data out
of FileMaker without problems so my focus here is getting the data into
Entourage.  I've tried a number of variations on this snippet ...

tell application "Microsoft Entourage"
    make new draft window
    set myToAddress to (convert "<[EMAIL PROTECTED]>" from text)
    set to recipient of draft window to myToAddress
end tell

All create a new draft message but then return an error of the form ...

Can't set «class cDfW» to "<[EMAIL PROTECTED]>". Access not allowed.

If I change "to recipient" to the plural "to recipients" the error becomes
...

Can't set «class toSt» of «class cDfW» to "<[EMAIL PROTECTED]>".

I get very similar results when trying to set the subject of a new message
as well.

Any ideas?  Or am I trying to do the impossible?  I truly hope not, my boss
has already told clients that it's on the cards.

Cheers, Pedro  :-)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ICQ number: 27671678    PGP Key ID: 0x8D411261


--
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives:
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to