There are no error while script is working, but the layer don't lock and don't hide at end.
And some graphic and text frame aren't scanned by the script. Only one is find.
How specifically lock the item when conditions are validated ?
How to use the item function ?
What is the correct structure to use page item ?
app.activeDocument.pages.pageitems(0).items(0)
???
Thanks