Focus Modes MacOS

here is an example script to work with focus modes: