26.04.12, 16:05
The following code doesn't lock the active layer.
It also doesn't produce an error..
activeDocument.activeLayer.locked=true
Printing the current locked value of the layer does work:
print(activeDocument.activeLayer.locked)
If you use Scriptographer regularly or for commercial purposes, please consider making a donation via PayPal:
Thank you!