Quark 6.1 index / "Edit List" replacement?
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