Finding Empty Text Frames in InDesign
How can I find an empty text frame in InDesign?
I’m not sure if you’re asking how to find them, or how to delete them… but here are two answers:
First, you can find an empty text frame using the Find/Change dialog box. First, click the GREP tab, and then type
\A\Z in the Find What field. That code (backslash-A-backslash-Z) will search for a frame that contains a story with no text. (In the case of multiple frames threaded together, but with no story, it will find only the first frame in the thread.)
In this case, it places the text cursor inside the frame. If you want to delete it, you’d have to press Esc (to select the frame) and then the Delete key.
(If you need help installing scripts, see this post.)
Of course, a text frame with a single blank space it in is no longer “empty,” so the script won’t find it. Another thing the script won’t find is a frame that has xml tags in it but no text. I assume that’s because the xml tags are probably some kind of invisible or hidden text in the frame. I saw an AppleScript here that looks for frames that have zero words in them, that apparently works.
The Blatner Tools plug-in from DTP Tools (yes, I did have something to do with this one) includes a plug-in called Quality Assurance (or QA) which can find empty frames, as well as lots of other possible problem areas of documents.
(Note that QA and BT haven’t been released for InDesign CC yet. Any day now, though!)
I hope that helps!