Re: Entourage Note -> Structured Text?
Re: Entourage Note -> Structured Text?
- Subject: Re: Entourage Note -> Structured Text?
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 20 Apr 2004 08:56:23 -0700
On 4/20/04 5:50 AM, "Matthew Leingang" <email@hidden> wrote:
>
>
I'm interested in converting my Entourage notes into structured text files.
>
The latter are plain text with poor-man's markup like *italics*, **bold**,
>
and _underline_, et cetera. Many zope products can present these as pretty
>
HTML, while allowing you to edit something which is more readable by humans.
>
>
The trouble I'm having is that if I just take the content attribute of a
>
note in Entourage, I get none of the style information. If I get the
>
content of a note as record, I see
>
>
{+class form;:id, +class want;:note, +class seld;:118, from:application
>
"Microsoft Entourage"}
>
>
The Applescript TDG mentions that styled text is hard to detect and even
>
harder to work with. Does that mean this is impossible or do I need to go
>
the VB route?
>
>
Clues are appreciated. Thanks!
Unfortunately, styled text is not scriptable in Entourage, anywhere. (I've
been requesting it for 5 years.) The Text Suite is not implemented in
Entourage scripting. So there's no way of getting the style information from
a note, although you can use styles in the UI. It may be encoded as HTML
somewhere behind the scenes, but there's no "Source" for a note as there is
for a message, so you can't get that either. As you've seen, 'content' gets
you only the text without styles.
What might work would be to use 'set the clipboard' - or GUI scripting if
need be to select all and Copy all from the menus and/or key stroke
emulation - then dump 'the clipboard' or paste into some text editor that
does styles - like Tex-Edit Plus which has excellent scriptability. You
could then do your manipulations in Tex-Edit Plus and either save the file
there or use 'write' to write a plain text file. Might as well use TE+ once
you're there. Smile and Script Debugger also do styled text.
--
Paul Berkowitz
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.