Reply To: Image scripting..

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

#103153
David Blatner
Keymaster

Thank you, Michel! OK, I see my mistake. This script works if the layer is called “images” — of course, you can change that to any other layer name, but it must be changed in 2 places in the script.

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 != "images") myLinks[L].parent.parent.itemLayer = "images";

I understand that you have written a more robust script that can do much more, and does error checking (and that people can pay you for that version). But thank you for sharing this simple free version.

This article was last modified on April 18, 2018

Comments (0)

Loading comments...