Topic: https://brettterpstra.com/2019/08/16/bunchs-latest-abilities/
hide preview

What's next? verify your email address for reply notifications!

paulpalinkas 4y, 204d ago

Thanks for Bunch, it's helping me quite a bit in my new context-free work-play-live-everything-from-home world. Can you tell me what method you're using to toggle Do Not Disturb? It doesn't seem to be directly AppleScriptable.I'd like to figure out a way to programmatically disable DND, then re-enable it after an hour. (This feature is coming in Big Sur, but with all the videoconferencing I’m doing lately, I need it now.)

remark link
hide preview

What's next? verify your email address for reply notifications!

unverified 4y, 50d ago [edited]

I made a do not disturb for 1 hour bunch by delaying the turn on. I added the turn back on when closing in case I turn off the bunch for some reason I won't forget to toggle notifications. This does mess with your global DND settings but oh well. It is a work around snooze that seems to work.

'# Do not disturb for 1 hour (3600 seconds)

(dnd on)

(dnd off) ~3600

'# Run this when closing the bunch to automatically turn notifications back on

!(dnd off)

hide preview

What's next? verify your email address for reply notifications!

Brett 4y, 204d ago

It uses core foundation code, not something I think can be accomplished through any form of scripting. You can, however, use Bunch’s ‘raw’ url handler to run just that function from a script…

hide preview

What's next? verify your email address for reply notifications!