Reply To: script needed to remove background colour

#81182
Paul White
Member

fixed the curly quotes but still getting syntax error on line 3.
it was the space between -1;

var myDoc = app.activeDocument;
var myRectangleArray = myDoc.rectangles.everyItem().getElements();
for (var j = myRectangleArray.length -1; j >= 0; j--) {
var myItem = myRectangleArray[j];
if ((myItem.graphics.length >0 ) || (myItem.images.length > 0)) {
myItem.fillColor = myDoc.swatches.item("None");
}
}

This works great! The above code works if anyone else needs it and thank you for everyone input.
Now do I tell it to look for all these in a book not just a single document?

This article was last modified on January 28, 2016

Comments (0)

Loading comments...