Re: Rich text from an Outlook 2011 email message
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, 29 Aug 2013 15:17:31 -0500
- Thread-topic: Rich text from an Outlook 2011 email message
Thanks, Paul.
Various ways of including html seem to result when I get the source of
various html messages. Because of what I've discovered after using
suggestions provided in responses to my question, I believe that what I
want may not be precisely what I've asked for.
I've scripted a fairly (not absolutely) reliable way to convert html
message to plain text in Outlook 2011 so that line length is preserved
when Outlook renders the converted version of the message. If you work
with Outlook very much, you're probably aware that turning off html for a
message or saving it as text results in hard line wraps. If I view the
source or export the messages converted using my script, the lines get
wrapped just the way they do when I let Outlook handle the whole process.
So, unless there is a way for me to handle rtf conversion of all the types
of html content (including the ones that don't containm "<html>" or
"</html>"), I guess I'll settle for a way to save to plain text the line
wrapping rendered by Outlook for the messages I convert. I haven't worked
on that much yet. Anyway, if you have an AppleScript that converts an
Outlook html message to rich text, please share it. Thanks again.
Laine Lee
On 8/27/13 2:47 AM, "Paul Berkowitz" <email@hidden> wrote:
>Try 'source', not content. You should get all the HTML code as well as the
>plain text in a multipart message. You can parse just the HTLM code using
><HTML> and </HTML>. At least that's how it is in Entourage and I'm pretty
>sure it will be the same in Outlook.
>
>--
>Paul Berkowitz
>
>
>> From: "L. Lee" <email@hidden>
>> Date: Mon, 26 Aug 2013 16:58:21 -0500
>> To: AppleScript-Users <email@hidden>
>> Subject: Re: Rich text from an Outlook 2011 email message
>>
>> Thanks, Jim.
>
>What I expect when I ask for the "content" of the message is the
>> html
>code, but that's not what I get. It appears instead to be content that
>> is
>rendered somehow according to characteristics that don't seem
>> accessible
>to AppleScript, a combination of plain text and html code, the html
>> code
>consisting only of whatever URLs were contained in the message. I
>> was
>hoping to find a way to get the "content" in an unrendered form
>> (raw
>html), but it appears that the only way to do that might be to use
>> the
>View Source command which is only available from the contextual menu
>> for
>each message, then manipulate the text to get just the html
>> portion
>defined by the "boundary" parameters.
>
>Laine Lee
>
>
>On 8/26/13 2:56 PM,
>> "Jim Skibbie" <email@hidden> wrote:
>
>>From the Outlook dictionary, you
>> should be able to get the property called
>>"content" which is the HTML content
>> of the given message.
>>
>>
>>From there, you should be able to use textutil to
>> convert that HTML to
>>RTF.
>>
>>
>>>
>>>Is there any way for an AppleScript to get
>> rich text out of an Outlook
>>>2011 HTML email message without scripting the
>> UI? 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:
>> 40@sbcglo
>>bal.net
>>Archives:
>> http://lists.apple.com/archives/applescript-users
>>
>>This email sent to
>> email@hidden
>
>
> _______________________________________________
>Do
>> not post admin requests to the list. They will be ignored.
>AppleScript-Users
>> mailing list (email@hidden)
>Help/Unsubscribe/Update
>> your
>> Subscription:
>> email@hidden
>Archives:
>> http://lists.apple.com/archives/applescript-users
>
>This email sent to
>> email@hidden
>
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>AppleScript-Users mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>bal.net
>Archives: http://lists.apple.com/archives/applescript-users
>
>This email sent to email@hidden
_______________________________________________
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