Closed seanorama closed 7 years ago
:+1:
Unfortunately, there is not an API to access the Do Not Disturb feature :(
:-1:
This stack overflow post might be of help: http://apple.stackexchange.com/a/69760/117542
Notification Center drops a plist in the following location that you can read the value of.
Seems a little hacky though, I wouldn't really want an app killing NotificationCenter just so that the DND mode can be enabled.
Hmm, personally a little too hacky for my tastes. Definitely something to consider if there is ever a public API for it.
One thing I have thought of doing is adding scripting support to Tomighty to run scripts off various events, similar to what Focus does. This would let people script their DnD settings via AppleScript. Will probably close this ticket at some point.
Closed, since it's not going to be implemented. Feel free to open a new ticket if DND ever gets an API.
Feature request: Automatically enable "Do Not Disturb" in the OSX Notification Center during a cycle, and then disable during the break.
"Do Not Disturb" was added in Mavericks. See it by holding 'option' and clicking the OSX Notification Center: https://www.dropbox.com/s/germyjxd1le3udk/Screenshot%202015-01-30%2020.51.42.png?dl=0