I raised this problem earlier:
Currently I use the macOS app Hazel to do this. https://www.noodlesoft.com/