Re: Numbers and Lists and Quark
Re: Numbers and Lists and Quark
- Subject: Re: Numbers and Lists and Quark
- From: Shane Stanley <email@hidden>
- Date: Thu, 06 Sep 2001 11:01:00 +1000
On 6/9/01 10:48 AM +1000, paul mccabe kampu, email@hidden, wrote:
>
> tell text box 1
>
> set paraCount to (count of every paragraph of story 1)
>
> --lets say paraCount is 7
>
> --in here, using a repeat loop and/or a handler,
>
> --I would like to set the style sheets of every
>
> --other paragraph to "theHead". In other words
>
> --if paraCount is still 7 then
>
> --paragraphs 1, 3, 5, 7, 9, 11, 13 need
>
>
should be --paragraphs 1, 3, 5, 7 need
>
>
> --the style sheet "theHead" applied to them
>
> --and paragraphs 2, 4, 6, 8, 10, 12, 14 need
>
>
should be --and paragraphs 2, 4, 6 need
>
>
> --the style sheet "theBody" applied to them.
>
>
>
> --How can this be done? Is there a better way?
>
>
>
> end tell
tell story 1 of text box 1
set paraCount to (count of paragraphs of story 1)
set style sheet of every paragraph to "theBody"
repeat with i from 1 to paraCount by 2
set style sheet of paragraph i to "theHead"
end repeat
end tell
--
Shane Stanley, email@hidden