Created
June 4, 2013 19:55
-
-
Save benwaldie/5709021 to your computer and use it in GitHub Desktop.
Revisions
-
benwaldie created this gist
Jun 4, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ 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"