My apologies. What I mean is I want to delete blank paragraphs -- those
paragraphs that contain no text, only returns. I think I tried to search for
those paragraphs that are equal to ASCII character 13, but that didn't work.
Nate Olson
On 5/16/04 11:35 PM, in article
michelle-06257E.23351416052004.TakeThisOut@news.west.cox.net, "Michelle Steiner"
<michelle.TakeThisOut@michelle.org> wrote:
> In article <BCCDA796.12470%nolson66@comcast.net>,
> Nathan Olson <nolson66.TakeThisOut@comcast.net> wrote:
>
>> I'm trying to delete multiple paragraphs in Appleworks. The following script
>> works, but seems a bit kludgy. I'd like to use a whose statement that
>> checked for every occurrence of two consecutive paragraphs. But
>>
>> every character whose it contains return & return
>>
>> doesn't work. Neither does paragraph. What am I missing?
>
> By "delete multiple paragraphs," do you mean that you want to make all
> the paragraphs into one paragraph? If that's the case, this should do
> it for you:
>
> tell application "AppleWorks 6"
> tell text body of front document
> set temp to paragraph 1
> repeat with loop from 2 to count of paragraphs
> set temp to temp & paragraph loop of paragraphs
> end repeat
> end tell
> end tell
>
> A paragraph is a block of text beginning with the start of the file or
> the first character after a carriage return, and ending with a carriage
> return or the end of the file.
>
> I don't understand what you mean by "two consecutive paragraphs."<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Appleworks text script question