1 Reply Latest reply on Jan 8, 2009 8:35 AM by (Dave_Saunders)

    CS3 - replacing swatch (jscript)

    (evbeem)
      Hi,

      I'm trying to remove a swatchcolor and replacing it with an other one.

      So far without any success.

      According to the referenceguide it should be something like this:
      myColor is the swatch to be replaced by replaceColor.

      var myColor = myDocument.colors.item("tekstkleur");
      var replaceColor = myDocument.colors.item(categorie);

      myColor.remove[replacingWith: replaceColor];

      But the error is "] expected"

      Can anyone shine some light on this subject.

      Kind regards

      Erwin van Beem