Unlock all objects in document(s)?
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.
Thanks.
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.
Thanks.
Ariel,
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.
--
Marijan (tomaxxi)
http://tomaxxi.com
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.