Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Changing table direction - script

$
0
0

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?


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>