Skip to main content
Inspiring
July 4, 2016
Question

Select and Merge Swatches via javascript

  • July 4, 2016
  • 6 replies
  • 1083 views

Is there a way to: 1. Select swatches in swatch panel with JS 2. Use the Merge Swatches command with JS

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participating Frequently
March 29, 2023

Hey Developer1009,

have you found a solution for merging the swatches? I'm looking for the same feature, but I cannot find any solution.

regards!

Inspiring
July 4, 2016

There is no method itemByName in javascript , but there is a method getByName. This will return a swatch but does not select  in swatch panel.

tpk1982
Legend
July 4, 2016

You are right..Sorry..am new in Illustrator scripting.. in Indesign we used itemByName..

tpk1982
Legend
July 4, 2016

You can select using itemByName from swatch and for merge swatches the velow links are useful

merge selected swatches...

Re: Merging swatches