1 Reply Latest reply on Feb 25, 2017 7:58 AM by Laubender

    Table Column width

    Sen.Soft

      Need an Indesign java script to know the table column width value.

       

      Example

       

      Col 110p8.75128.75129
      Col 24p4.852.853
      Col 33p84444
      Col 41p1.2513.2513
      Col 54p10.458.458
        • 1. Re: Table Column width
          Laubender Adobe Community Professional & MVP

          Hi,

          with ExtendScript scripting you could get the values with:

           

          // Select a table, not a text frame
          alert(app.selection[0].columns.everyItem().width);
          

           

          Or if you want to write the values to the JavaScript Console of the ExtendScript Toolkit (ESTK):

           

          // Select a table, not a text frame
          $.writeln(app.selection[0].columns.everyItem().width);
          

           

          The values are expressed in the Ruler Units of your document.

          E.g. If the ruler is the set to Points, then the values are in points.

           

          If you want a tool to store and reapply column width values see


          Gerald Singelmann:

          Set table-columns numerically II | InDesign FAQ

           

          Gerald's script is downloadable from his blog and you can inspect the code.

           

          Regards,
          Uwe