I wish there would be a new property perhaps called "reallyAllPageItems" or "superAllPageItems" for all "Document"-, "Layer"-, "MultipleStateObject"-objects.
We have "allPageItems" for the "Document"-object, but its scope is not the whole document:
it does not include pageItems in "none-active" states of an "MultipleStateObject"-object when it is used with the "Document"-object.
For "Layer" it does not include pageItems on "MasterSpreads".
And when I'm at it: give us a "allPageItems"-property for "States" in "MultipleStateObject"-objects.
I would not recommend expanding the scope of "allPageItems" for compatibility reasons with older scripts.
Uwe
North America
Europe, Middle East and Africa
Asia Pacific