Re: snow leopard broke my script
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