Hi Friends,
How to find used colors in a particular layer. File has 2 or 3 layers.
Regards,
Sangeetha
There's no magic bullet for finding where a color is used. You'll need to cycle through the page items on your layer of interest, looking at all the properties of every object that has properties with "Color" in their names. When the page item is a text frame, you'll need to check its text -- I think you can work with textStyleRanges to do that, but maybe not because they don't catch things like nested and grep styles.
What do you want to do when you find a color in use on your layer?
It will undoubtedly make a script like this run faster if you do the homework and develop lists of the specific properties of interest rather than hunt through every possible property for the word "Color" dynamically.
Dave
Sorry Dave, i didnt explain my requirement correctly. I want to check whether the anno layer having question. i.e anno layer should contain only 'anatoda' colored text. likewise alumno layer should not contain 'anatoda' color text. if it exist script throw alert.
what my problem is, if i find anything, it find in the entire page not in the specific layer.
Thanks,
Sangeetha.
North America
Europe, Middle East and Africa
Asia Pacific