Re: TOC in QuarkXPress

From: Bart Lateur (bart.lateur@SKYNET.BE)
Date: Fri May 18 2001 - 20:15:19 AEST


On Fri, 18 May 2001 11:43:41 +0200, Bart Mulier wrote:

>How can I get al the used fonts
>of a quark document,

er...

>and also the text specifications of a specific text
>box???

Use "text style ranges". It's a very neat concept: similar as to how you
can subdivide your text into characters, words or paragraphs, you can
also ask Quark on all blocks of text that use the same text styles. You
only need to know retrieve the font properties, and style info, for each
of these text style ranges. This will be a large performance boost,
compared to asking for it per word, or worse, per character.

And yes, you can ask for the text in it, too. Or the count of
characters, or the offset (number of characters in text before the start
of this range). Try=20

        tell application "QXP"
            tell text box 1 of document 1
                get properties of first text style range
            end tell
        end tell

to see what else you can ask of it.

--=20
        Bart.

------------------------------

End of MACSCRPT Digest - 17 May 2001 to 18 May 2001 (#2001-160)
***************************************************************



This archive was generated by hypermail 2b29 : Sun May 27 2001 - 12:00:28 AEST