How to detect if an application is already running
I am trying to use the Try Catch component in Openspan studio, to catch a "Chrome Already Running" exception. I have read the help article here, which mentions that you can select an exception from the list, however I cannot find the exception I am getting. Please could somebody advise how I can identify the correct exception to meet my needs?
This is the exception I am trying to catch:
EDIT: I have changed the Title of this article to better assist people in future on similar issues.
From Jeffs advice below, I found a script online which does the job. You can replace "chrome" with any application you like, as it appears in task manager, minus the ".exe"
If you ever want to see what the exception is, look in the RuntimeLog. It will have all of the information you are looking for. The reason why you can't catch this exception is that this is actually a message from the adapter and not an exception. You could actually write a simple script using System.Diagnostics.Process to check to see if the chrome process is running before you start the adapter.