11 Replies Latest reply on Aug 18, 2014 11:12 PM by Trevorׅ

    Changing table direction - script


      Hello all,


      I have a series of large Arabic documents where I need to flip the table direction to RTL. I've cobbled together the following:


      var a = app.activeDocument.textFrames.everyItem().tables.everyItem().getElements();

      for (var i=a.length-1; i > 0; i--){

      a[i].tableDirection = TableDirectionOptions.RIGHT_TO_LEFT_DIRECTION;



      It seems to work but doesn't catch every table - what have I left out?