Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Automate manual work with Tables

$
0
0

Ruq, to use the grep, first set the preferences using

app.findGrepPreferences      and

app.changeGrepPreferences

 

Then

myText.changeGrep() or myText.findGrep().

both methods return an array of found texts, so if you need to manipulate those results remeber the cardinal rule of ALWAYS ITERATING THE ARRAY BACKWARDS, otherwise you might invalidate references to the found objects.

 

 

 

@Dave:

Your getTable function has one problem. What if the selection is a story, or just a text, containing a table.


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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