3

I've programmatically selected some text in InDesign using ExtendScript:

app.findGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.appliedFont = myFont;
var matches = app.activeDocument.findGrep();
if(matches.length > 0) {
  matches[0].select();
}

How can I deselect it now? Is there no function for this, like app.clearSelections(); or something of the sort?

Shawn
  • 10,931
  • 18
  • 81
  • 126

1 Answers1

4

Try with:

app.activeDocument.select(NothingEnum.NOTHING);
martinrohart
  • 161
  • 2