Tag them, then open Structure View (XML).
Only problem is that this is not really useful.
In Scripting you should avoid the Selection anyway.
You can select object by this command:
True, but it doesn't allow a regular selection to be made on more than one spread:
Error Number: 1288
Error String: Cannot select two objects on different spreads.
Source: doc.pages[p].textFrames.select (SelectionOptions.ADD_TO);
(1633969202 is easier remembered as "SelectionOptions.ADD_TO")