findColor() returns a number, it should return objects to which the colour was applied
Using the Colour tab in the Find/Change dialog you can search text and/or objects to which a certain colour was applied in the document. That works fine.
However, in a script, this call:
app.findColorPreferences.properties.findWhat =
app.documents[0].swatches.item ('red');
app.documents[0].findColor();
returns the number of objects to which the swatch 'red' was applied. It should return the objects to whci the swatch was applied.
This makes the function entirely useless. Please fix this.
1
vote
![](https://secure.gravatar.com/avatar/6094ec81d8396ff0c41e8167c36e11d1?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)