I have an InDesign brochure that I'm trying to script against however I'm running into issues. When I try to script against the 100 page brochure I get an:
Error Number: 11274; Error String: Object is locked
When I go through the three master page layers' there is no locked layer and when I land on a page the Layer Panel
still shows no locked layer on the top and child level areas. Thinking it might be a file issue I tried exporting the brochure to an IDML and opening again then saving as a new INDD but the issue still exists.
I've tried scripting:
app.activeDocument.pageItems.everyItem().locked = false;
on all the pages before tying to manipulate the zero text frame with (app.select(allPages[x].textFrames[0]);
) through a for loop but the issue still occurs. Thinking it might be a master page issue I've tried:
app.activeDocument.masterSpreads.everyItem().pageItems.everyItem().locked = false;
but I still get the same results. When referencing the InDesign scripting documentation under Working with Layers the selection regarding locking layers is limited.
How can I script through an InDesign document that is producing an object lock or is there a way I can isolate the locked object?