Apple script: SEND mail needs to Retain formatting and attachments
Apple script: SEND mail needs to Retain formatting and attachments
- Subject: Apple script: SEND mail needs to Retain formatting and attachments
- From: Deepak <email@hidden>
- Date: Tue, 4 Aug 2009 21:01:54 +0530
I need to send a mail using apple scripts. The mail exists in one of the Mail.app local mail boxes. The SEND action will be triggered from the backend, when Mail is launched and the user should not be On sending, I will add some text to the original content of the mail.
set theMessage to make new outgoing message with properties {subject:theSubject, sender:theSender} tell theMessage set theMailContentOld to (get the content of eachMessage) set theMailContent to theMailContentOld & return & theMailContentNew set content to (theMailContent)
end tell
send theMessage
This way, I am able to send the message with new text embedded at the end of the message. But, the original attachments and formatting of the email is lost.
Is there an easier way to copy the entire original message (retaining formatting and attachments) as a new outgoing message and SEND ? |
_______________________________________________
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