Skip to content

Instantly share code, notes, and snippets.

@marshallvaughn
Created August 13, 2019 14:19
Show Gist options
  • Save marshallvaughn/60339c1f8a48761caea1ba5607224f4e to your computer and use it in GitHub Desktop.
Save marshallvaughn/60339c1f8a48761caea1ba5607224f4e to your computer and use it in GitHub Desktop.
-- This requires setting the shortcut for "Turn Do Not Disturb On/Off" to "shift + cmd + D"
tell application "System Events"
keystroke "D" using {command down, shift down}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment