Site logo

Table

How to move table

You cannot directly move a Table object, but you just need to move the Character that contains the table. An important property of any table is .storyOffset, which actually is an InsertionPoint.
So you could try something like this:

var ip = myTable.storyOffset, // InsertionPoint
sto = ip.parentStory, // Parent Story
tblChar = sto.characters[ip.index]; // Character that 'contains' myTable

tblChar.move(LocationOptions.AT_BEGINNING, copyFrame);

Table's Position

I've got a table within a text frame.
I'd like to my script to figure out the table's position (its x & y coordinates).
How do I do that?

Click here to download the snippet.