1 person found this helpful
I'm a bit unclear on what you're asking...
Do you want to unlock every group in a document/page?
Also, groups.locked won't work, as locked isn't a property of groups. If you want to unlock every group, you should be able to use
groups.everyItem().locked = false
so, for every group in a document, you would use
app.documents.groups.everyItem().locked = false
and for every group on a page:
app.documents.pages.groups.everyItem().locked = false
I don't have CS1 or CS2 installed right now, so I can't test on either of them, but i'm fairly sure that this should work.
If you're looking for something else, I'm sorry I misunderstood your question, but if you can be a bit more specific about what exactly you're trying to do, I'll do my best to help,
We can try what you've suggested, and if it works, that would be sufficient, however it would be nice to be able to specify which group we would like to unlock.
We have a template that contains two object groups. In a perfect world only one of these will be unlocked during the running of the script. We are unsure how to identify the groups and then unlock.
We will check out what you've supplied for the doc and get back with you.
It didn't work. It may be because the content is on the document master (A).
Anything else I can try?
It worked by removing
Thanks a bunch.
Only because it now ungroups all groups in your document (But yes, that includes ones on master pages.)