Reply To: Image scripting..

Home Page / Forums / InDesign User Groups / Image scripting.. / Reply To: Image scripting..

#103143
David Blatner
Keymaster

Michel, when you post code here, please use a the code html tag, or else the code get messed up (curly quotes, etc.)

However, I tried to clean this up and it still does not work for me:

var myLinks = app.activeDocument.links, L = myLinks.length;
while ( L– ) if ( myLinks[L].parent.parent.parent.constructor.name != "Character" && myLinks[L].parent.parent.itemLayer.name != "Layer 1" ) myLinks[L].parent.parent.itemLayer = "Layer 1";

I am getting an error that says: ) does not have a value and the offending text is )

This article was last modified on April 18, 2018

Comments (0)

Loading comments...