• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PowerMail: Sending and CCing to Messrs Foo & Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
      • From: JF <email@hidden>
References: 
 >Re: PowerMail: Sending and CCing to Messrs Foo & Bar (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
  • Next by Date: Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
  • Previous by thread: Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
  • Next by thread: Re(2): PowerMail: Sending and CCing to Messrs Foo & Bar
  • Index(es):
    • Date
    • Thread