How to tell when an event was triggered by the current app instance

Thanks for the discussion here, I have been looking for the same answer. I made some progress and figured a write up needed a new thread as this one seems pretty stale. Please take a look at what I have found here as it may help you: