InDesign Java Script to return Swatches used by object
Hello, beginning js / indesign user here. I have the following question:
Is there a way to get the swatches used by an object via js? I already know that objects don't usually have a swatches-property, however in indesign you can create a dynamic caption that will display these same swatches by putting their names in a text frame.
If the dynamic caption can display this, but objects do not have assigned swatches, where does it get the information necessary from? And can I use this to get a list/array/string or similar in js? I am specifically looking for a method or a partial script.
