I am OK with the shell command to open and/or close and app fmro within an application that I have created, however, I do have a question....how would you test for the existance of an open application that was not opened by your code?
When my script/app opens I want to see if notepad is open. If it is then close it.
I am trying to cure an existing legacy problem and the only way is to find the app and toast it! I am tired of doing it every on the hour manually.