title: How can I programmatically clear text selection in InDesign with ExtendScript?
body: <p>I've programmatically selected some text in InDesign using ExtendScript:</p>
  
  <pre><code>app.findGrepPreferences = NothingEnum.nothing;
  app.findGrepPreferences.appliedFont = myFont;
  var matches = app.activeDocument.findGrep();
  if(matches.length &gt; 0) {
    matches[0].select();
  }
  </code></pre>
  
  <p>How can I deselect it now? Is there no function for this, like <code>app.clearSelections();</code> or something of the sort?</p>