Color swatch mapping with presets for print production
I made this script using ChatGPT, it does mostly everything I need, but I ran into the issue that the option "Merge Swatches" in the Swatches panel, cannot be used/accessed with JavaScript.
I work as Prepress designer and I have to constantly change spot colors to match the swatches that the print operators need to match the colors the client need (Pantone match or paint swatches). Most of these colors are saved in an .ASE file and I have to manually merge them multiple times.
I thought my script was going to fix this for me until I hit that wall.
Can you guys make something like this that is reliable for the printing industry.
I would really appreciate.
Thanks!

-
Hector Abreu commented
Update July 02 - 2025
- Big GUI improvements
- Better color matching and replacing logic -
Hector Abreu commented
@Egor, I found a work around. but I would prefer if I could use the merging swatch option in the swatch panel, is faster than looking thru every element in the design.
-
Hmm, there is not much visual difference... Do you mean you were able to workaround the problem?
Script API doesn’t provide this functionality, true... A script can try to call an action that does it, but dynamically creating actions is prone to error... The script itself is interesting, but feels like a niche tool, so it’s good you are developing it. -
Hector Abreu commented
so far i have improve this a lot more since my last post