How to monitor any particular process OR application with path in swift

i am looking for a solution or an API to track launch and exit of process in mac OS. I able to find solution to track exit of process but how to monitor launch of an application.

I able to find solution to track exit of process but how to monitor launch of an application.

Please explain more about the context here. Why are you trying to do this? And in what context is the code running? And if it’s an app, is that app sandboxed?

Context is really important in this situation because the answers will be very different if, for example, you’re creating something like the Dock versus an Endpoint Security sysex.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to monitor any particular process OR application with path in swift
 
 
Q