A script to look at one group og swatches and replace with another group of swatches
Hello! I'm looking for a script or a way to script a little productivity matter for work.
Let me provide a little context - I create social media graphics. I have a template file in Illustrator for some graphic design overlays to go. I have assigned all the objects a text a swatch and given that swatch a name. I have also created groups that will allow me to alt-drag swatches to recolour the artwork in the template I need.

When I wish to change the colour scheme of a graphic, I alt-drag the swatches from one theme (e.g. HCA 3 > Working Pallet.) This recolours the artwork to the template style I need.
So this;

Becomes this;

My question is this-
Is there a way to automate this process with a script?
I don't mind if the script switches out colours from one group to another or if I have to assign a new RGB value to the working pallet group swatch for each individual swatch. Any input on this would be greatly appreciated. Thank you for your time. 🙂

