Re: Numbers and Lists and Quark
Re: Numbers and Lists and Quark
- Subject: Re: Numbers and Lists and Quark
- From: paul mccabe kampu <email@hidden>
- Date: Wed, 05 Sep 2001 20:48:18 -0400
- Organization: Kalsea Lane
paul mccabe kampu wrote (quite hurriedly and incorrectly):
>
Hello All,
>
>
This is putting me in a quandry of numerical proportions!
>
>
set oddNumsList to {1, 3, 5, 7, 9, 11, 13, 15, 17, 19}
>
set evenNumsList to {2, 4, 6, 8, 10, 12, 14, 16, 18, 20}
>
>
tell application "QuarkXPress 4.11"
>
tell document 1
>
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
>
end tell
>
end tell
>
>
Thank you.
--
Paul
http://homepage.mac.com/pkampu/ (*not for the faint of heart*)
"No, TRY not. do or do not. There is no TRY." --Yoda(on error handling)