Copy link to clipboard
Copied
Hi All
Can anyone tell me the syntax for selecting the table one by one in a whole Indesign document.
Sajeev
Copy link to clipboard
Copied
There doesn't appear to be any 'tables' collection that's document wide, but you can iterate through all tables in a document like this:
for (var f = 0; f < app.activeDocument.textFrames.length; f++){
for (var t = 0; t < app.activeDocument.textFrames.tables.length; t++){
var tempTable = app.activeDocument.textFrames.tables ;
}
}
Copy link to clipboard
Copied
@brettpolo:
Marc Autret showed a wonderful method to change table properties document wide in his blog post "On "everyItem" - Part 2" in the section "Using everyItem().properties":
http://www.indiscripts.com/post/2010/07/on-everyitem-part-2
Don't miss part 1! A must-read for all ExtendScript-scripters…
Uwe
Copy link to clipboard
Copied
Thanks Uwe
I saw the page it really helps me
Sajeev
Copy link to clipboard
Copied
This script will select all tables in the active document, one by one. That's not very useful -- or is it?
for (s=0; s<app.activeDocument.stories.length; s++)
{
for (t=0; t<app.activeDocument.stories.tables.length; t++)
{
app.activeDocument.stories.tables.select();
}
}
Copy link to clipboard
Copied
Thanks Jongware
It really works great . I have completed the task.
Sajeev
Find more inspiration, events, and resources on the new Adobe Community
Explore Now