Selection InDesign objects with applescript

Hi folks,
I pretend get the geometric bounds fo all items in the page of InDesign as list,
I tried to select every item in the page and get the size of that group. But on every atempt a make
script editor gives such an error:

(tell application “InDesign CS”
get size of all page items
“InDesign CS got an error: Can’t get size of all page items.”)

How do I get the geometric bounds of every item in the frontmost page of InDesign???
could you help me??


this should do what you want:

property myResults : {}

tell application "Adobe InDesign CS2"
	set theDocument to the active document
	tell theDocument
		tell page 1
			set myFrames to every rectangle
			repeat with eachFrame in myFrames
				set x to geometric bounds of eachFrame
				copy x to end of myResults
			end repeat
		end tell
	end tell
end tell
return myResults

If you need a list of geometric bounds then all you need to do is the following:

tell application "InDesign CS"
	tell page 1 of document 1 to set ObjList to geometric bounds of every rectangle
end tell