Example: GetLayerPerms
To find out the permissions associated with layer 1030 on the current page of the active document:
[GetLayerPerms(0, 1030)]
A sample reply:
2111
This means the following permissions are associated with this layer: read, modify, delete, print, create, hide, and write.