• 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
Apple script: SEND mail needs to Retain formatting and attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: div bug
  • Next by Date: Re: div bug
  • Previous by thread: Auto: AppleScript-Users Digest, Vol 6, Issue 353
  • Next by thread: Auto: AppleScript-Users Digest, Vol 6, Issue 354
  • Index(es):
    • Date
    • Thread