scripting bug: why does layer.printable always yield true? [solved]
My layer.printable always returns true:
for (var i = 0; i < app.activeDocument.layers.length; ++i) {
var layer = app.activeDocument.layers[i];
if (!layer.visible)
alert("Layer " + layer.name + " is invisible.");
if (!layer.printable)
alert("Layer " + layer.name + " is not printable.");
}
Indesign 2024, can anyone confirm? I set this by selecting the Layer in the layer pane and clicking on "not printable" in the attributes pane. It saves the setting but it seems to not change the boolean. The invisiblility settin works.
https://developer.adobe.com/indesign/dom/api/l/Layer/
Never min, just found it out: even with selecting the layer, it just spills the attributes on the objects. To set it for the lyer, you need the layer dialog.
