Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Are there any keyboard shortcuts for controlling Notification Center on OS X Mountain Lion? Of particular interest is a shortcut equivalent of the Click to Tweet button that appears at the top of Notification Center (when the requisite option is selected in the Notifications settings pane), but if it happens to have other shortcuts (either predefined, or definable in System Preferences - I couldn't see any) those would be useful as well.

share|improve this question
    
What does "click to tweet" have to do with Notification Center? –  Daniel Lawson Jul 27 '12 at 3:29
    
System Preferences -> Notifications -> Share Button -> Check "Show share button in Notification Center" causes a button with that label to appear at the top of NC. I agree it's a weird place to put that button, but regardless, I'm not crazy: it's there. :) –  Dan J Jul 27 '12 at 3:39
    
Curiouser and curiouser… I don't have that option in System Preferences. But in the Notifications Center app there is indeed share_twitter.tiff. –  Daniel Lawson Jul 27 '12 at 3:46
1  
I believe you need to have at least one Twitter account configured under System Preferences -> Mail, Contacts & Calendars (another unintuitive location... guess there's no great place to cram Twitter into OS X :P) in order for the option to appear in the Notification settings. –  Dan J Jul 27 '12 at 3:48
1  
Wow. That's utterly strange. –  Daniel Lawson Jul 27 '12 at 4:06

8 Answers 8

While not related to Notification Center, you can achieve this easily using the official Twitter client for OS X. This has a configuration option for "Global New Tweet" which lets you compose a tweet with a key combination without the Twitter app being in the foreground.

Twitter Preferences Screenshot

share|improve this answer

The proper answer to this question is "No." But that's not a very satisfying answer. So if you're determined to have keyboard shortcuts for Click to Tweet in Notification Center, this is what you can do:

Warning: this is a complete and utter hack, but it seems you can (for now; this might break easily) trigger the Tweet button through a very delicate use of UI scripting.

  • Create an Automator service.

  • Give it a single action: Run AppleScript

  • Here's the script:

    tell application "System Events"
        tell process "Notification Center"
            click menu bar item 1 of menu bar 1
            click button 1 of UI element 1 of row 2 of table 1 of scroll area 1 of window "window"
            keystroke "Whatever text you want as your default tweet"
        end tell
    end tell
    
  • Save the service (obviously modify it from my example), assign it a keystroke in System Preferences, and voila: you've got a keyboard shortcut… until Notification Center gets rearranged and button 1 of UI element 1 of row 2 of table 1 of scroll area 1 of window "window" is no longer the Tweet button.

If this looks convoluted, that's because it is. If this isn't something you want to use, I don't blame you, and you can fall back on the answer of "no, there aren't keyboard shortcuts."

share|improve this answer
5  
Hah! That's a terrifyingly-fragile solution, but I admire your creativity. :) –  Dan J Jul 27 '12 at 16:29

Here's what I do:

  • I have a shortcut set to open Notification Centre. This is mapped to F13, as described in other answers.
  • I also have the tab key enabled to move keyboard focus between 'all controls': Screenshot

    1. Press F13 to open NC.
    2. Press the tab key twice until 'click to tweet' is highlighted in blue: screenshot 2
    3. Press the spacebar.
    4. Type my tweet (I haven't found a way to add location without clicking).
    5. CMD+Shift+D to send.
share|improve this answer
    
I've since discovered that this can be buggy. –  DrGuyBH Mar 25 '13 at 7:34

Found a great one!

Alt + , when notification center is open, reveals an additional switch above the Tweet area, to temporarily disable Notification Center:

Temporarily disable notifications?

Once you click the switch:

Off Position

Edit: Anyone else see this documented anywhere?!? Am I the first one to find this?!?

@siracusa Documented it in his epic Mountain Lion review: http://arstechnica.com/apple/2012/07/os-x-10-8/4/#notification-center

share|improve this answer

If you are using a trackpad, there is also a new gesture to show/hide the notification center: swipe with two fingers from the right border of the trackpad towards its center.

This setting can be enabled/disabled in Settings -> Trackpad.

share|improve this answer

Here's an alternate:

display dialog "Tweet?" default answer "" buttons {"OK"} default button 1
set mytweet to text returned of result

tell application "System Events"
    tell process "Notification Center"
        click menu bar item 1 of menu bar 1
        click button 1 of UI element 1 of row 2 of table 1 of scroll area 1 of window "window"
        keystroke mytweet
        repeat 3 times
            keystroke tab using {control down}
        end repeat
        keystroke space
    end tell
end tell
share|improve this answer
    
I don't find the tab using control down has any effect — the final keystroke space just types a literal space. –  Daniel Lawson Jul 27 '12 at 20:02
    
In the keyboard section of system preferences, do you have "full control" enabled? –  Ewwis Jul 28 '12 at 17:23

While it doesn't work for "click to Tweet", there are indeed three keyboard shortcuts that work with Notification Center. They are , , and return. Combined with the ability to assign a keyboard shortcut to open Message Center, normal messages can be responded to using the keyboard alone. The Share button and the Mute switch do not seem to respond to these inputs, however.

share|improve this answer
6  
I would like to add that CMD + Shift + D sends the tweet after you input some text into the sheet. –  GhostLyrics Aug 3 '12 at 13:21

There is a configurable keyboard shortcut to open Notification Center:

Other than that, there seems to be no way to configure any keyboard shortcuts. The closest I could get is discovering that you can set Notification Center as the action for a hot corner. If you wanted to do this when a key is pressed, you can try combining this with AppleScript (like in this post).

share|improve this answer
2  
Thanks for the tip. I wonder why apple didn't assign a standard shortcut. –  ra170 Jul 29 '12 at 21:17
    
Unnecessary. Almost everyone has a multitouch device, and if you don't like that, you'd know how to set a short cut yourself –  XAleXOwnZX Aug 4 '12 at 3:31
    
I think that is an unreasonable assumption, @XAleXOwnZX. A fair majority, maybe. "Almost everyone?" perhaps not. As is the automatic expectation of knowing how to set a shortcut, keyboard, hot corner, or otherwise. –  Jason Salaz Aug 8 '12 at 8:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.