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…