TUAW Post > AppleScripting Notification Center > Scheduling Do Not Disturb

nc_scriptMountain Lion's Notification Center is great for keeping you in the loop, but it can be a huge distraction when you need to get stuff done. Sometimes, a little peace and quiet is all you need to stay productive.

As you may know, iOS 6 includes a handy Do Not Disturb feature, which can be turned on to disable notifications. It can even be set to automatically enable/disable itself at scheduled intervals. Mountain Lion also lets you disable Notification Center. Just open Notification Center and drag down to access a Show Alerts and Banners toggle switch. Note that this is a temporary setting, and disabled notifications automatically re-enable at midnight.

Unlike iOS 6, though, Mountain Lion doesn't give you an option for enabling/disabling notifications on a schedule. At least, it doesn't provide a built-in option for this. With a little customized help from AppleScript, Automator, and the Calendar app, it is possible.

In this post, you'll create two Calendar Alarm Automator workflows, which can be configured to run at scheduled times to enable or disable Notification Center alerts and banners.

[Read more on TUAW...]

Display Notification Center Alert Automator Action 1.0.1

Added support for international and unicode text.  Get the action here!

Display Notification Center Alert Automator Action 1.0.0

I've written a new Automator action for displaying a notification center alert in Mountain Lion.  You can use it to display a notification when a workflow is complete, to remind you to buy your wife flowers, or anything else that might require a custom alert. I hope you find it useful.


P.S. If you like this, please check out my other Automator actions.

Configuring the action for use. You can specify a title, subtitle, and message

A Notification Center alert displayed by the action

A Notification Center message displayed by the action

 Display Notification Center Alert 1.0.1


Version History

2012-08-26 - Version 1.0.0
2012-08-29 - Version 1.0.1 - Added support for international and unicode text