I wanted to know if there is any way to monitor the application folder for application initiations and termination, such as, say I have App1, App2, and App3 in the /Applications folder I want a script/program (running in an infinite loop) that can output the following:
App1 has started
App3 has started
App1 has terminated
App2 has started
App2 has terminated
App3 has terminated
...
etc
So far I try using fsevents, kqueue, etc... without success.
Please help me
App1 has started
App3 has started
App1 has terminated
App2 has started
App2 has terminated
App3 has terminated
...
etc
So far I try using fsevents, kqueue, etc... without success.
Please help me