I don't know how to "tell" it in applescript, but:
you should loop in "every splineItem" whose
fillColor.index == 0 AND
strokeWidth == 0 AND
allGraphics.length == 0.
more or less...
Refering to splineItem you refer to "a path-based page item, such as a rectangle, oval, polygon, or graphic line".
hope it can help...
PS. By the way, what about your text frames with NO content but with color or stroke sets?
For now you are removing them, aren't you?
You could check the rectangle for graphic 1 and check the rectangle for its content type. Something like:
tell application "Adobe InDesign CS4"
tell document 1
tell page 1
tell rectangle 1
display dialog (content type as text) --> "unassigned" or "graphic type"
if exists graphic 1 then
display dialog ("There is a graphic in this rectangle.")
display dialog ("There is no graphic in this rectangle.")
Thanks for your note.
I am just doing testing now, so I will need to check it if this works for NO content but with color or stroke sets.
However, I believe it should.
Thanks for your reply...
I will check the code..