4 Replies Latest reply on Apr 16, 2011 1:32 PM by Laubender

    Determine if textframe empty [JS][CS4]



      I have an indesign file which has a "header" and  "footer" textframes on one Masterpage. Sometimes I receive dozens of such files from client and I need to check if the header and footer are present.


      The header always contains simple text (always same parastyle applied), the footer contains a 3x2 table inside the textframe, the insertion point the table is set in has a parastyle "Footer". The table cells are applied parastyles left-to-right cell "FooterLeft", "Footer", "FooterRight".


      I am looking for optimal algorithm to determine if

      a) Header is NOT empty

      b) Footer is not empty AND if not empty IF the table cells are not empty


      I tought about using "Find" and specific parastyle, any other ideas?