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.

In Mountain Lion there is a "tweet sheet" when sharing from either notification center or an app. The default hotkey for "send tweet" is CMDShiftD. I'd like to use something like CMDRETURN. Is there a way to remap this?

share|improve this question

1 Answer 1

You can use Spark to set custom keybindings for nearly anything in OS X. You can set up a shortcut to execute an AppleScript and use the following script:

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
        keystroke "D" using {command down, shift down}
        keystroke space
    end tell
end tell

Source: TUAW

share|improve this answer

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.