title: How to close hidden InDesign documents?
body: <p>While scripting InDesign, I've had plenty of instances where I create a new document that's hidden until I execute all of the actions, and then I use myDocument.windows.add(); to get it to show. However, I've also had plenty of instances where I get an error before that last step, so the document doesn't materialize. The only way I've been able to get them to close out is to close out InDesign completely; though this works I figure there has to be a better way.</p>
  
  <p>Is there a way, either in the IDE or by a script, to see what's open and/or close all hidden processes?</p>
  
  <p>Cheers,
  Brendan</p>