1 Reply Latest reply on Jan 24, 2015 2:25 AM by Laubender

    read the table text

    Level 1

      How to read the all the table text in the application file

        • 1. Re: read the table text
          Laubender Adobe Community Professional & MVP

          What do you mean

          A. by "read" and what do you mean by

          B "table text"?

          And finally what do you mean by

          C. application file?

           

          A => writing the unformatted contents to a file?

          B => an InDesign table?

          C => an InDesign document?

           

          If you have a table selected, you'll get the unformatted contents this way:

           

          var myTableContents = app.selection[0].contents;
          

           

          For all tables in one InDesign document (no nested tables, no tables in footnotes) you can get it by:

           

          var allTablesContents = app.documents[0].stories.everyItem().tables.everyItem().contents;
          

           

          The variable allTableContents will be an array of arrays.

           

          Uwe