• 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
PowerMail: Sending and CCing to Messrs Foo & Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PowerMail: Sending and CCing to Messrs Foo & Bar


  • Subject: PowerMail: Sending and CCing to Messrs Foo & Bar
  • From: JF <email@hidden>
  • Date: Tue, 16 Apr 2013 15:17:45 +0100

Hello

I have just moved from Mailsmith to PowerMail and am setting up some stationery using AppleScript which is how I did all my stationery in Mailsmith.

I am having a problem with setting up a "to recipient" and a "cc recipient". I have tried many variations and I cannot get both to go into the same email. Here is my latest version, which allows Mr Foo to be a CC recipient, but Mr Bar is left out completely even though he is the more important "to recipient".

My knowledge of AppleScript isn't very much, then again I usually only need it when I am setting up trivial things like adapting email stationery (and then cannot work it out, though I did succeed with the "other headers"):

_____________________________________

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:cc recipient, address:{"Mr Foo <email@hidden>"}}, recipient:{{recipient type:to recipient, address:{"Mr Bar <email@hidden>"}}}}}
set other headers to {"Return-Receipt-To: Moi <email@hidden>" & return & "Disposition-Notification-To: Moi <email@hidden>"}
display dialog " A new message was created in your Out Tray."
open out tray

______________________________________

Also, can the script be laid out better in lines, not using {} and commas so much but having
"set msg to make new msg" on one line, then
set recipient...
get account...
or whatever commands are required. Such a layout is much more helpful to amateurs like me. Powermail kindly provided the original appleScript.

I hope someone on this list can help.

TIA


 _______________________________________________
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

  • Prev by Date: Re: What's wrong with the Finder?
  • Next by Date: Re: PowerMail: Sending and CCing to Messrs Foo & Bar
  • Previous by thread: Re: What's wrong with the Finder?
  • Next by thread: Re: PowerMail: Sending and CCing to Messrs Foo & Bar
  • Index(es):
    • Date
    • Thread