There is an option in the menu of the color palette
Add Selected Colors
I tried this:
app.executeMenuCommand("add selected colors");
app.executeMenuCommand("Add Selected Colors");
but it does not work
Any help please?
Thank you very much for your help.
Someone could give me a help please?
Thank you very much.
Otherwise, adding colors from selection is possible by using a loop to reach each paths' fills and strokes - but if you have appearances which are stacked on top of the default shape fills and strokes which are of different colors, they have to be expanded , then raster effects will add more complexity, etc.