• 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: Rich text from an Outlook 2011 email message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rich text from an Outlook 2011 email message


  • Subject: Re: Rich text from an Outlook 2011 email message
  • From: "L. Lee" <email@hidden>
  • Date: Thu, 05 Sep 2013 09:11:30 -0500
  • Thread-topic: Rich text from an Outlook 2011 email message



From: Jim Skibbie <email@hidden>
Date: Friday, August 30, 2013 2:41 PM
To: "email@hidden" <email@hidden>
Subject: Re: Rich text from an Outlook 2011 email message

So, something like this doesn't work?

-- select a message in your Outlook then

tell application "Microsoft Outlook"

set theMessages to current messages

set theHTML to content of item 1 of theMessages

end tell


set tempHTMLFile to ((path to desktop folder) as text) & "test.html"

WriteFile(tempHTMLFile, theHTML)


set cmd to "textutil -convert rtf " & quoted form of POSIX path of tempHTMLFile & " ~/Desktop/test.rtf"

do shell script cmd


on WriteFile(outFile, myData)

set fileRef to (open for accessoutFile with write permission)

set eof of fileRef to 0

write (myData) to fileRefstarting at eofas «class utf8»

close accessfileRef

end WriteFile



Yes, well, if a temp file is what it takes, I can live with that. Thanks.

Laine Lee

 _______________________________________________
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: cutting multiple sections from a string?
  • Next by Date: Any way to evaluate equality expressions with multiple operands?
  • Previous by thread: Re: cutting multiple sections from a string?
  • Next by thread: Any way to evaluate equality expressions with multiple operands?
  • Index(es):
    • Date
    • Thread