10 Replies Latest reply on Apr 21, 2011 9:55 PM by stoereee

    [JS IDCS5] Running through all tables and place textFrame

    stoereee Level 1

      I wan't to place textFrames below all the tables within a document.


      #target indesign;
      var myDocument = app.activeDocument;
      var myTables = myDocument.stories.everyItem().tables;
      for(var i=myTables.length-1; i>=0; i--){
                 // var myFrame = myTables[i].insertionPoints[0].textFrames.add();
                 // the above line does not work......


      How do I get the insertionPoints of the tables, so textFrames can be added at that point?


      Regards, Sjoerd