• 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: snow leopard broke my script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snow leopard broke my script


  • Subject: Re: snow leopard broke my script
  • From: Brian Christmas <email@hidden>
  • Date: Sun, 29 Nov 2009 13:27:40 +1100


On 29/11/2009, at 12:58 PM, Shawn Brady wrote:

make new recipient at end of to recipients with properties {address:"email@hidden"}


G'day Shawn

For a start, it should be

make new to recipient at end of to recipients with properties {address:"email@hidden"}


and you might need to set the attachments at the initializing stage, where logo path is a list of attachments...

tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:the_mailto, subject:the_subject, attachment:LogoPath, content:the_content}
set TempP to count of paragraphs
make new attachment with properties {file name:LogoPath} at before the first paragraph
make new attachment with properties {file name:LogoMMPath} at after paragraph (TempP - 4)
repeat with themailitem in MainRecipients
if themailitem as text ≠ "" then make new to recipient at end of to recipients with properties ¬
{address:themailitem}
end repeat
repeat with themailitem in CCRecipients
if themailitem as text ≠ "" then make new cc recipient at end of cc recipients with properties ¬
{address:themailitem}
end repeat
send
end tell

Regards

Santa
 _______________________________________________
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: snow leopard broke my script
      • From: "email@hidden" <email@hidden>
References: 
 >Re: More date/time stuff (From: "Stockly, Ed" <email@hidden>)
 >snow leopard broke my script (From: Shawn Brady <email@hidden>)

  • Prev by Date: Re: snow leopard broke my script
  • Next by Date: Re: snow leopard broke my script
  • Previous by thread: Re: snow leopard broke my script
  • Next by thread: Re: snow leopard broke my script
  • Index(es):
    • Date
    • Thread