Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
- Subject: Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
- From: JF <email@hidden>
- Date: Tue, 16 Apr 2013 21:41:25 +0100
Thank you. I prefer the first version you sent because, at this stage of my amateur status, I like to see the steps on different lines.
But I have realised that one of my mistakes when trying to do this myself I had four right braces, which Script Debugger accepted for compilation, when it should have been three right braces and a bracket. }}}). I wonder why SD did not pick that up.
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:
>@fmail.co.uk
>Archives: http://lists.apple.com/archives/applescript-users
>
>This email sent to email@hidden
_______________________________________________
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