Change and delete duplicate color swatches
I have hundreds of files with Brand Color swatches the are different throughout, and through the out the building of these files multiple versions of the colors are added through copy paste etc. Is there a Script that could clean up the swatches in these files to make them all consistent?
For example one files swatches could look like this:
Brand Red (0,100,100,0)
Brand Blue (100,80,0,0)
Brand Blue 1 (100,83,0,0)
Brand Blue 2 (100,88,0,0)
Brand Blue 3 (100,81,0,0)
Brand Blue 4 (100,89,0,0)
Brand Blue 5 (100,82,0,0)
Brand Blue 6 (100,77,0,0)
Brand Blue 7 (100,95,0,0)
Brand Red 1 (0,90,90,0)
Brand Red 2 (0,100,93,0)
Brand Red 3 (0,92,90,0)
Brand Red 4 (0,100,94,0)
Brand Red 5 (0,70,92,0)
Brand Red 6 (0,95,92,0)
Brand Red 7 (0,97,90,0)
I would like the script to change the swatches to:
Brand Red (0,100,100,0)
Brand Blue (100,80,0,10)
Change the Original color(s) and replace all the duplicates with the Original. Brand Blue (1-7) would be replaced by Brand Blue, Brand Red (1-7) would be replaced by Brand Red. Any other colors would be left alone.
Is this possible? Could it batch process multiple files?
Thanks!
