Beside of Hazel, Keyboard Maestro is an alternative, too.
I use it e.g. to start some EDT batch jobs or chains of such and do upfront and afterwards cleanup within KBM. (See the examples https://forum.easydatatransform.com/t/using-easy-data-transform-with-keyboard-maestro-on-your-mac/964/4)