4 Replies Latest reply on Feb 23, 2009 11:50 PM by (Joaquin_Zarasul)

    [CS2 JS] Get the parent paragraph of a table

      Hi,

      Anybody here who knows how to get the parent paragraph of a selected table?

      var myTable = app.selection[0];
      var myStory = myTable.parent.paragraphs;

      The script above gives me all the paragraphs of the parent text frame. I want to know the index of the paragraph where my selected table is.

      Appreciate the help you can give. Thanks!