title: Close an application using VBScript
body: <p>I was trying to open and close an application.
  I tried like this:</p>
  
  <pre><code>Dim App1 
  Set App1 = CreateObject("WScript.Shell")
  App1.Run("firefox")
  App1.Quit
  </code></pre>
  
  <p>Firefox will open, but it will not close.</p>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>object doesn't support this property or method</p>
  </blockquote>
  
  <p>I referred <a href="https://stackoverflow.com/questions/7602718/indesign-scripting-how-to-quit-application-not-document">InDesign Scripting how to quit application (not document)</a></p>
  
  <p>Please tell me the procedure to close the application.</p>