Re: Trying to send mail with attachments through Entourage
Re: Trying to send mail with attachments through Entourage
- Subject: Re: Trying to send mail with attachments through Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 17 Dec 2006 09:40:46 -0800
- Thread-topic: Trying to send mail with attachments through Entourage
Title: Re: Trying to send mail with attachments through Entourage
On 12/17/06 9:11 AM, "Paul Berkowitz" <email@hidden> wrote:
tell application "Microsoft Entourage"
set msg to make new outgoing message with properties {subject:"XXX", content:"Some text here", recipient:{{address:{address:"email@hidden", display name:"Joe Blow"}, recipient type:to recipient}, {address:{address:"email@hidden", display name:"Jane Blow"}, recipient type:cc recipient}, {address:"email@hidden", display name:"Ebenezer Scrooge", recipient type:bcc recipient}}}
end tell
Strictly speaking, that last bcc recipient should look like this:
{address:{address:"email@hidden", display name:"Ebenezer Scrooge"}, recipient type:bcc recipient}}
I forgot the inner 'address' record and braces. But it worked anyway. Yet another "shortcut" - or coercion.
The Entourage dictionary, at least the email part of it, was built on top of the old Outlook Express dictionary for Classic Mac, first made under OS 8 (or maybe it was even OS 7.5 or 7.6 - I've forgotten now. In any case it was made by the same developer who had done the dictionary for Claris Emailer, even earlier, mostly along the same lines.) It followed the specifications of Apple's "Mail Suite" of the time (OS 7.x) which set that peculiar structure for 'recipient' with the 'address' property that itself has an 'address' property. But the developer add all those useful coercions such as being able to omit all the complex stuff when using only a single To recipient, going with recipient:"Joe Blow <email@hidden>", setting recipient and attachment elements from the 'with properties' parameter, and so on, to make things much easier than the dictates of the Mail Suite while still adhering to it. The trouble is that it's not documented anywhere.
--
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden