Re: Quark Color, get list and apply to text?
Re: Quark Color, get list and apply to text?
- Subject: Re: Quark Color, get list and apply to text?
- From: Hans Haesler <email@hidden>
- Date: Tue, 15 May 2001 09:44:01 +0200
On Mon, 14 May 2001, Marty Brandt wrote:
>
I am try to get used colors from Quark, list them in a text box and apply
>
the color to the color name in the text box.
Marty,
the info is there: Edit / Colors... / Show: / Colors In Use.
But this list is out of reach of a script.
So, you must cycle through all text boxes, picture boxes, graphic boxes,
collect the colors of the background, the frame, the gap, the blend...
Then there are the line boxes: colors for the line and for the gap.
Then loop through every text style range.
And don't forget to loop, again, through every paragraph of every story,
and select each paragraph in turn, else the attributes of 'Rule above'
and 'Rule below' won't be returned properly.
All these loops have to be repeated with every Master spread... because
there may be boxes which have been deleted on the document's side.
And selecting anything on a Master spread :-(
Then you must query every style spec. And since scripting style specs
is still broken you must create a box with some dummy text and apply
all style specs. Then you can extract the names of the colors but,
again, select each paragraph in turn, because you must look at the
'Rule above', 'Rule below' as well... Even if the boxes are unchecked,
a color may still be selected.
And what if you've used "Type Tricks"?
And what about imported colors while loading an EPS file?
Not much stuff for cheering you up, right? ;-)
Regards,
Hans
---
Hans Haesler | email@hidden