- A layer's, group's or compound path's collections and Artboard objects
read before File > Revert throw their stale errors.
- Scoped PageItems answer index() by number.
- removeAll() refuses to delete a clipping path whose group or layer keeps
other objects (ruler guides do not count), after the lock checks.
- Layers lists are kept while the document is unchanged, so a loop over
layers[i] lists them once; getByName on scoped collections is charged
each time.
- Action steps act on the artboard the script chose with
setActiveArtboardIndex, or on its index when it was deleted.
- object.newGroup refuses null for parent, index and compound.