Keyboard shortcut to dismiss notifications?

Discussion in 'macOS' started by bartvk, Feb 22, 2017.

  1. bartvk macrumors 6502

    bartvk

    Joined:
    Dec 29, 2016
    Location:
    The Netherlands
    #1
    It's been asked before, but I was wondering if there's a way to dismiss notifications with the keyboard?

    You're typing a document or browsing the web, and a notification appears (from the calendar or something), and I'd like it if there would be a keyboard shortcut to snooze or close a notification.
     
  2. BrianBaughn macrumors 601

    BrianBaughn

    Joined:
    Feb 13, 2011
    Location:
    Baltimore, Maryland
  3. bartvk, Feb 23, 2017
    Last edited: Feb 24, 2017

    bartvk thread starter macrumors 6502

    bartvk

    Joined:
    Dec 29, 2016
    Location:
    The Netherlands
    #3
    Works! Thanks a lot!

    For the purposes of Google: follow up the instructions of the link. Be sure to test from Automator itself, i.e. leave Automator open and schedule a notification (for example via the Calendar app). Then when the notification arrives, test from Automator by clicking the "Play" button in the top-right corner. If there are any errors, Automator will clearly show them.

    If it works, continue with the instructions to assign a shortcut key.

    Edit: first it looks like it works but there's problems with this solution; it basically requires that you grant every app rights to the Accessibility Control feature. That's a lot of hassle.
     
  4. BrianBaughn macrumors 601

    BrianBaughn

    Joined:
    Feb 13, 2011
    Location:
    Baltimore, Maryland
    #4
    Another solution would be to use the third-party BetterTouchTool. I don't know if that would involve the Accessibility hassle.
     
  5. bartvk thread starter macrumors 6502

    bartvk

    Joined:
    Dec 29, 2016
    Location:
    The Netherlands
    #5
    Thanks. I have a similar tool installed (Hammerspoon) and I'm seeing if it would support this. If that doesn't work then I may look at BTT!
     

Share This Page