- layers.add, groupItems.add and artboards.add read the new object's id or
index from the command's own result. Read from the script's copy, an id
past 2^53 lost precision, and the new layer or group came back stale or
null.
- script.run's activeArtboards also lists a document whose active artboard
has another index at the end of the run, because artboards were inserted,
removed or reordered before it, so the view shows the same artboard.
- After a run, the Artboard tool takes the view's active artboard again.
The end of a run starts the tool afresh, which made artboard 0 the tool's
active artboard whatever the view or the script had chosen.