title: What is #targetengine?
body: <p>My only prior experience with <code>#targetengine</code> is when I've used <code>#targetengine "session";</code> to turn a dialog into a palette when scripting in InDesign. But as I'm trying to figure out how to script a menu, I'm starting to see it pop up being used in other ways and using a term (target?) other than <code>session</code>.</p>
  
  <p>Adobe likes to assume that everyone who wants to script is an experienced programmer sometimes, so I haven't found a clear explanation as to what this is.</p>
  
  <p>So, when I use <code>#targetengine</code>, what am I doing? Can I use any term other than <code>"session"</code>? Some searches suggested this feature has to do with global variables; is that the case? If so, how can I clear them out without restarting InDesign? Is this a JavaScript thing or an ExtendScript/InDesign feature?</p>