I have an idea for a script for Illustrator, but I would like to know how possible this is. I have a manual way to do it, but would like the cold specificity of the computer to do it for me in a single command.
I want to select a piece of artwork, have the script count the number of unique colors, create a nice grid of boxes totaling the number of colors in the art and assign each color to it's own unique box that is viewable within the document, not only in the swatches window. I'd like the boxes to be placed in the same location on every document so that when looking at a folder of files I could quickly see what palette they use.
What commands should I look into? I'm very green to this scripting thing, my background being on the art side, so any help would be appreciated.
-R