• 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: Numbers and Lists and Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Numbers and Lists and Quark (From: paul mccabe kampu <email@hidden>)

  • Prev by Date: Re: Numbers and Lists and Quark
  • Next by Date: Re: Read Text File to Rename Images - Please help! [A bit OT]
  • Previous by thread: Re: Numbers and Lists and Quark
  • Next by thread: Re: Numbers and Lists and Quark
  • Index(es):
    • Date
    • Thread