On 6/12/02 5:32 PM, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
> On 6/12/02 2:16 PM, "Julian Vrieslander" <[EMAIL PROTECTED]> wrote:
>
>>> That will print just what you want: the headers plus the content in plain
>>> text, no massive HTML code. Print this note. And the original message stays
>>> as
>>> it was.
>>
>> The downside of this script is that I have to save the note before I print
>> it, then navigate to the Notes view and delete it.
>
> Neither statement is true. You don't have to save the note to print it as
> is. Just print it. Then Delete it by clicking the Trash icon in the note's
> toolbar. And you should use the final version of the script that omits HTML
> crap.
Hmmm. The first two times I tried that script Entourage did prompt me to
save before printing, but now when I tried it again, it did not. Weird.
>> I tried a simple script to move the stuff to a BBEdit window:
>>
>> tell application "Microsoft Entourage"
>> set theMsg to item 1 of (get current messages)
>> set theHeaders to headers of theMsg
>> set theContent to content of theMsg
>> set theText to theHeaders & return & return & theContent
>> tell application "BBEdit 6.5"
>> make window with properties {text:theText}
>> end tell
>> end tell
>>
>> This seems to give exactly what I want. A text window with full headers,
>> message content, and no extra frufru. I can save it or print it from
>> BBEdit. The only drawback to this script is that for some messages it seems
>> to uncover MIME codes (or some other encodings). Is there a way to deal
>> with this? I'm pasting a sample below, but I don't know if the codes will
>> show. What I am seeing is sequences where the equals sign is followed by a
>> number.
>
> I forget what that stuff is called. It's a pretty basic format. You can see
> it in the Source window too.
"Quoted Printable" if I remember right. Dan Crevier wrote an OSAX to strip
out this stuff, which I have used with Claris Emailer and BBEdit under OS 9.
The OSAX is available here:
<http://www.boingo.org/dan/software/Programming.html>
But I have not been able get this OSAX to work in OS X.
I tried to duplicate the case which put QP codes in the BBEdit window, and
this time the codes did not appear. More weirdness. Maybe the
non-repeatable glitches were happening because I was running scripts from
within Script Editor, and not within the applications.
In any case, thanks for your help, Paul.
--
Julian Vrieslander <[EMAIL PROTECTED]>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>