Saw this given as an answer in another post for current page selections only:
Thanks in advance!
It's not possible, I'm afraid. Just like you can't select objects on
several spreads in the UI, so you cannot do that with scripting either.
Of course, you can get a collection of all objects in a document, or
create an array of them -- but you can't actually select() them.
Thank you for your quick answer! It's a shame you can't do it, basically all I'm trying to do is select all items in a document and then Transfrom/Move them 4 mm to the right. Is it possible to do something like that a collection or array as you mentioned?
If you're sure that's what you want, this should do it:
app.activeDocument.pageItems.everyItem().move(undefined, ["4mm", 0]);