Script to insert used swatches
I print files from Illustrator to a plate imager. The artwork gets printed in color separation, so I put the filename in registration and the color names in their respective color so that the printing press operator knows what color belongs to each plate. I have already written a script to automatically insert the file name, but I'm having trouble coming up with one for the colors. I need the script to insert the name of only the swatches used in the file that is linked on the artboard, but also change the color of the text to its respective color. Please help!