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

Numbers and Lists and Quark


  • Subject: Numbers and Lists and Quark
  • From: paul mccabe kampu <email@hidden>
  • Date: Wed, 05 Sep 2001 18:21:24 -0400
  • Organization: Kalsea Lane

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
--the style sheet "theHead" applied to them
--and paragraphs 2, 4, 6, 8, 10, 12, 14 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)


  • Follow-Ups:
    • Re: Numbers and Lists and Quark
      • From: paul mccabe kampu <email@hidden>
  • Prev by Date: Re: Trapping timeout errors
  • Next by Date: Photo list
  • Previous by thread: RE: Setting the visibility of a file or folder
  • Next by thread: Re: Numbers and Lists and Quark
  • Index(es):
    • Date
    • Thread