2 Replies Latest reply on Feb 17, 2016 12:25 PM by KuddRoww

    How to get Figure Number contents?

    KuddRoww Level 1

      I have a bunch of figure tables. They look like this:



      The first cell has a paragraph style applied to it with the following numbering settings:



      My question is how the HECK you're supposed to get the contents of the first cell as a string?


      //select table
      var cell = app.selection[0].cells[0];
      var str = cell.contents; //str should contain 'Figure 7'


      Is there a direct way to do this? I'm driving myself nuts trying to figure it out.


      I remember once doing this before but it was super contrived.