2 Replies Latest reply on Oct 26, 2012 2:41 AM by Abhi_apple

    Delete Empty frames in Indesign

    Abhi_apple Level 1

      Hi Friends,


      I want to delete all the empty frames in the indesign (basically any small frames mistakenly added by the user) in the document. These frames can be graphic frames, text frames or any unassigned frames.


      My below script only deletes the text frames in the document. However, it cannot locate any graphics frame or any unassigned frames.


      tell application "Adobe InDesign CS4"

                tell active document

                          delete (every text frame whose contents is "")

                end tell

      end tell


      Please suggest if we can edit/modify this script so that it deletes all the types of empty frames.


      Thanks for your help and suggestion!