Answered
Find text in table by character style
Hi all, I'm hoping someone could assist me with my script to find any text in a selected table that has a given character style. Below is my approach but findGrep() isn't returnng any matching results. This strategy seems to work when I search by paragraph style so I'm not sure why it doesn't translate to character style. Any help would be appreciated!
app.findPreferences = null;
app.changePreferences = null;
app.findGrepPreferences.appliedCharacterStyle = characterStyle;
const textFound = selection.findGrep();
updateTracking(textFound, trackingToAdd);
