I suspect the answer is no, but is there a way to do this? I've got 60 files originally made by rhesus monkeys and they found the "lock" command.
I have a hunch that it could be scripted. One of our scripting gurus may answer whether it's possible.
user Harbs has answered this question in an earlier thread:
EDIT: or Jongware's answer in this earlier thread:
admittedly, searching on the forum's indesign scripting site sucks. user John Hawkinson suggested a better way of searching it. to quote him directly:
Use google instead, you can specify site:forums.adobe.com +"indesign scripting"
At least they weren't marmosets, or everything would be on a non-printing layer, too.
While in InDesign, click on 'Object' from the Menu options and select 'Unlock All on Spread'. See if it helps.
Thanks, but there are 1,013 spreads, so I'd like to avoid that.
Got the script running. So far, so good.
or the OP should try ariel's script above... just tested in CS5 (mac) and it works there.
The simple one works in CS5.5; will try the other if anything changes.
There is no need to loop through allPageItems. It's just slow and pointless.
allPageItems returns all items no matter if they are grouped or not.
If you noticed, you can't lock object which is inside of group.
Therefore, using simple one line of code you can unlock all
items in the document like Jongware did in his post:
app.activeDocument.pageItems.everyItem().locked = false;
To unlock items just on master pages use this:
app.activeDocument.masterSpreads.everyItem().pageItems.everyItem().locked = false;
To unlock all items just on pages, not master pages:
app.activeDocument.pages.everyItem().pageItems.everyItem().locked = false;
Hope that helps.
Thanks that's good. I thought of allPageItems.everyItem() but then I saw
that it returned an array, not a collection, so it didn't work. At the
back of my mind I remembered that there was an object that would work
with everyItem() but I couldn't remember offhand what it was.
You didn't say what version of InDesign?
InDesign CS5 you can open the Layers panel, here there is a triangle to expand the layer.
And you can unlock all items by clicking and holding and sliding down the side with the locks on it.
Or use the Sub menu and choose "unlock all"
You can also try this script which is now apparently only accessible via the WayBackMachine.
It worked great for me in Insdesign CC2021 to unlock every element in a 280-page document.
Marijan (tomaxxi) gave the correct answer back in 2011.
Even with the lastest version of InDesign 2021.
Perhaps one could add another line of code that also unlocks all layers of the active document:
app.activeDocument.layers.everyItem().locked = false ; app.activeDocument.pageItems.everyItem().locked = false;
FWIW: An expanded version could also memorize all locked objects so that a user will be able to lock all items that were unlocked later.
( ACP )