Forked from benwaldie/2013-02-03-TUAW_Waldie-1.applescript
Created
August 22, 2013 19:29
-
-
Save pfitz/6311713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script "defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -boolean true" | |
set theDate to quoted form of (do shell script "date -u +\"%Y-%m-%d %H:%M:%S +0000\"") | |
do shell script "defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate -date " & theDate | |
do shell script "killall NotificationCenter" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment