Is that a CS5 bug (app.findObjectPreferences.fillColor)
Hi,
I wanted to go and make a findObject request through scripting. My intention is to find objects with "None" fill color.
So I wrote :
with(app.findObjectPreferences){
fillColor="None";
}
app.findObject() and that returns 0 occurences.
As I have "None" filled objects, I didn't understand why Indesign didn't find them and looked into the find object dialog box to see what is going on.
It appears that the specified color is not None but non specific color.
So I picked "None" in the UI and just request the name of that color via scripting
alert(app.findObjectPreferences.fillColor.name);
Obviously, it should return me "None" but it gave me "C=0 M=0 Y=100 K=0"...
And indeed if I give :
with(app.findObjectPreferences){
fillColor="C=0 M=0 Y=100 K=0";
}
The UI dialog displays "None".
Why Pure Yellow is None ?
Loic
