Close an application using VBScript
vbscript
Solution
If you want to be able to terminate a process that way you need to use the `Exec` method instead of the `Run` method.
Set ff = CreateObject("WScript.Shell").Exec("firefox")
'you do stuff
ff.Terminate
Problem
I was trying to open and close an application. I tried like this: ``` Dim App1 Set App1 = CreateObject("WScript.Shell") App1.Run("firefox") App1.Quit ``` Firefox will open, but it will not close. Error message: object doesn't support this property or method I referred InDesign Scripting how to quit application (not document) Please tell me the procedure to close the application.