But that script will convert the message to plain text, which is not what
Richard wants.

I'm going to guess (from having seen Richard reject suggestions to switch to
plain text many, many times over the past five or six years) that Richard is
going to want to stick to HTML. If that is the case, then he should
experiment a few times with calculating how long 60 characters in his
preferred font and size looks until he gets the feel of it. Then he should
simply manually press the Return key as he's typing every time he gets to
about that length - at the end of a word, of course. Precise counting does
not matter here - it does not have to be exactly 60 characters. He is simply
trying to find a line length short enough that no recipient's email program
will insert extra carriage returns.

Of course he could accomplish this by just using plain text. But I don't
think he wants to know that.

-- 
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using - 2004,
X  or 2001. It's often impossible to answer your questions otherwise.



From: Allen Watson <[EMAIL PROTECTED]>
Reply-To: "Entourage:mac Talk" <[email protected]>
Date: Sun, 30 Dec 2007 08:37:29 -0800
To: "Entourage:mac Talk" <[email protected]>
Subject: Re: Better to send email in HTML or plaintext?

The only way I know of to hard break at 60 characters in Entourage--rather,
the only _ways_--are either manually or by AppleScript. Look for a script
called "Hard Wrap" on www.scriptbuilders.net <http://www.scriptbuilders.net>
. Or copy the script below into Script Editor and save in Entourage Script
Menu Items folder:

property newlen : 72

on ProcessMsg (theMsg) --

tell application "Microsoft Entourage" --

if class of the front window is not in  {message window, draft window } then

error  "You must have a message open for editing to use this script."

return

end if

try

-- set theText to the selection, or if none, to the entire message

set theText to ""

try

set theText to  the selection as text

set partial to true

-- say "partial"

end try

if (theText = "") or (class of theText is not  string) then

set theText to the content of theMsg

set partial to false

-- say "full"

end if

set theText to my hardwrap(theText)

-- display dialog theText

if partial then

set the selection to theText

else

if class of the front window is draft window then

beep

save the front window

set the content of the front window to theText

else

set the content  of theMsg to theText

end if

end if

on error theErr number theNum

display dialog theErr

return

end try

end tell --

end ProcessMsg --

on hardwrap (texttowrap)

set pfx to  "" -- Reserved for later use

set newTxt to ""

set lineLen to newlen

set texttowrap to every paragraph of texttowrap

repeat with aLine in texttowrap

set savedel to  AppleScript's text item delimiters

set AppleScript's text item delimiters to " "

repeat while (count of aLine) > 0

if ((count of aLine) is less than or equal to lineLen ) then

set l to aLine  & return

set aLine to ""

else

set l to text 1 thru lineLen of aLine

set lineList to  text items of l

if (count of lineList) > 1 then -- More than single 'word'

set  l to items 1 thru -2 of lineList & " "

set  aLine to item -1 of lineList & text (lineLen + 1) thru  -1 of aLine

else -- no word breaks

set  aLine to text (lineLen + 1)  thru -1 of  aLine

end if

end if

set newTxt to newTxt & pfx & l & return

end repeat

set newTxt to newTxt & return

end repeat

set AppleScript's text item delimiters to savedel

return newTxt

end hardwrap



on run

repeat

display dialog  "Wrap message to what length? (5 to 72)" default answer "70"

set newlen to  text returned of result as number

if newlen „ 5 and  newlen ¾ 72 then

exit repeat

end if

end repeat

tell application "Microsoft Entourage"

set currentMessages to the current messages --

repeat with theMsg in the currentMessages --

my ProcessMsg(theMsg) --

end repeat --

end tell --

end run

On Dec 24, 2007 8:12 AM, Richard Shane <[EMAIL PROTECTED]> wrote:
> Ent 11.3.3
> OX 10.4.11
> 
> Two questions, numbered below.
> 
> I'm working with a marketer who says to stick to plaintext email because spam
> filters have an even more difficult time dealing with HTML emails and so a lot
> of ISP don't allow them through.
> 
> 1. Do you folks agree or disagree?
> 
> He also said that HTML emails do not display exactly the same in all email
> programs. However, for this limitation, he said if you hard-break at around 60
> characters, there's a 99.999% chance your email will look exactly how you
> intend it to. 
> 
> 2. So if I choose to send HTML email, is there a way to set Entourage to
> hard-break at around 60 characters?
> 
> Thanks for your reply.
> 
> Richard
> --
> Richard Shane, Ph.D.
> http://www.drshane.com
> 1919 14th Street, Suite 812      Boulder, Colorado 80302      303.449.0778
> 
> 
> 
> 

Reply via email to