I was writing my own script and couldn’t get it to work, so I borrowed a similar script from Jerome (member).
tell application “Adobe InDesign CS3”
set emptyframes to every text frame of layer 7 of document 1 whose contents is “”
repeat with anitem in emptyframes
set content type of anitem to graphic type
The compiler hangs up on line 6. It says it expected end of line, but found to.
I can set a different text frame property (as in “set fill tint to 20”), and I can get the content type of the text frame. But I can’t set the content type. Is this a broken feature of InDesign? Or do I need to address the text frame’s parent (I tried page items already.)