• 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
Quark 6.1 index / "Edit List" replacement?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark 6.1 index / "Edit List" replacement?


  • Subject: Quark 6.1 index / "Edit List" replacement?
  • From: Scott Lawton <email@hidden>
  • Date: Wed, 16 Aug 2006 13:58:46 -0400

I want to create a simple "table of contents" / index with the text contents and page # of 2 specific style sheets.  To do by hand, I can "Edit List", choose the styles and the Numbering, then Window > "Show Lists" > click Build.  (I actually just want the raw text to send to another program.)

How do I do that in AppleScript?

I know that Quark allows "walking back up" the object hierarchy, but I've found very few examples via Google and I can't get the syntax quite right.

A simple case that works:

	tell application "QuarkXPress"
		tell document 1
			get index of page 1 of current box
			-- get page number of page 1 of current box -- also works
		end
	end

Some things that don't work:

get index of (first paragraph whose style sheet is "foo")
get index of text box 1 of (first paragraph whose style sheet is "foo")
get index of text box 1 of story 1 of (first paragraph whose style sheet is "foo")

Of course eventually I need "every" not "first" -- and the text along with the page numbers.  2 parallel lists is fine; I can iterate to generate lines of "blah blah[tab]page#".

Any suggestions?
--

cheers,

Scott
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quark 6.1 index / "Edit List" replacement?
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Re: How to match data in two different text files as fast as possible?
  • Next by Date: Quark tip, replace all in certain style sheet
  • Previous by thread: Re: Convert PC ANSI to Mac Standard Roman
  • Next by thread: Re: Quark 6.1 index / "Edit List" replacement?
  • Index(es):
    • Date
    • Thread