• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unbreaking e-mails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Memory leak with AS text item delimiters? (with example)
  • Next by Date: Re: Another view point.
  • Previous by thread: Re: Unbreaking e-mails
  • Next by thread: Move Items script
  • Index(es):
    • Date
    • Thread