• 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: 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)


  • Follow-Ups:
    • Re: Numbers and Lists and Quark
      • From: Shane Stanley <email@hidden>
References: 
 >Numbers and Lists and Quark (From: paul mccabe kampu <email@hidden>)

  • Prev by Date: Re: can i 'store script' as stay open applet?
  • Next by Date: Re: Numbers and Lists and Quark
  • Previous by thread: Numbers and Lists and Quark
  • Next by thread: Re: Numbers and Lists and Quark
  • Index(es):
    • Date
    • Thread