Re: PowerMail: Sending and CCing to Messrs Foo & Bar
Re: PowerMail: Sending and CCing to Messrs Foo & Bar
- Subject: Re: PowerMail: Sending and CCing to Messrs Foo & Bar
- From: Nigel Garvey <email@hidden>
- Date: Tue, 16 Apr 2013 21:12:14 +0100
In my message of Tue, 16 Apr 2013 20:31:48 +0100, I wrote:
>'Recipients' are _elements_ of 'messages' (ie. there can be more than
>one per message), not properties, so they have to be created separately.
OK. I've just found the on-board scripting examples from which JF was
working. It seems that PowerMail scripting is in fact flexible enough to
create all a message's recipients under a single 'recipient' _property_
whose value is a list of records or strings. So:
tell application "PowerMail"
activate
set msg to (make new message with properties {account:"Moi", status:draft, subject:"Foo4", content:return & return & "Herewith this document:" & return & return, recipient:{{recipient type:to recipient, address:"Mr Bar <email@hidden>"}, {recipient type:cc recipient, address:"Mr Foo <email@hidden>"}}})
display dialog " A new message was created in your Out Tray."
open out tray
end tell
NG
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden