Turn on Do Not Disturb While Using Certain Apps

Hi @jessestarrphoto, it doesn't work for me under macOS Mojave either.
But you can try the macro of @ccstone: