How to select all page items even if in a Group - InDesign CS2

Hello all,

Just wondering if anyone know how to get all text frames in an InDesign Document even if some frames are in a group. I know how to select single ones, I know how to select the one in a group, but I don’t know how to select them all together.

Thanks in advance.

Jase

Anyone got any thoughts on this little problem!

This works:

tell application "Adobe InDesign CS2"
	set x to every text frame of every group of page 1 of document 1
	set y to every text frame of page 1 of document 1
	set selection to x & y
end tell