How to see (and/or hear) the names of every process in macOS that starts or stops

If the problem was not getting the results you want from diff when run in a shell script action, it might be because of how diff codes its replies and Keyboard Maestro interpreting that as an error. I say this because I ran into this very problem myself a couple years back…

-rob.