Re: Unbreaking e-mails
Re: Unbreaking e-mails
- Subject: Re: Unbreaking e-mails
- From: Michelle Steiner <email@hidden>
- Date: Mon, 19 Feb 2001 19:44:06 -0800
On 2/19/01 9:15 AM, Erik Ness <email@hidden> wrote:
>
What I would like to be able to do is to unbreak the email
>
formatting: remove single line breaks and turn double line breaks
>
into singles. I know I could do this in another program, but is there
>
a way to manipulate the text within AppleScript?
try
set N to "What I would like to be able to do is to unbreak the email
formatting: remove single line breaks and turn double line breaks
into singles. I know I could do this in another program, but is there
a way to manipulate the text within AppleScript?"
set {tid, text item delimiters} to {text item delimiters, return &
return}
set N to text items of N
set text item delimiters to {""} --three bullets (option-8)
set N to N as text
set text item delimiters to {return}
set N to text items of N
set text item delimiters to {space}
set N to N as text
set text item delimiters to {""}
set N to text items of N
set text item delimiters to {return}
set N to N as text
set text item delimiters to tid
N
on error
set text item delimiters to {""}
end try
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------