Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all articles
Browse latest Browse all 20709

CS3 - replacing swatch (jscript)

$
0
0
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

Viewing all articles
Browse latest Browse all 20709

Trending Articles