Create a universal shortcut to most apps' Preferences dialog

May 09, '03 09:30:00AM

Contributed by: GaelicWizard

After reading the hint entitled Disable Command-Q for quitting applications, I becamee inspired and started experimenting. Here is what I ended up entering in my terminal:

  defaults write NSGlobalDomain NSUserKeyEquivalents 
    '{"Quit Safari" = "@Q"; "Preferences..." = "@;";}'
[Enter that on one line, with a space before the single quote that starts the second line above.]

With this command, I disable Command-Q in safari, as per the other hint, but I also make a universal shortcut for the menu item "Preferences..." under the {insertAppNameHere} menu in all Cocoa apps and most Carbon apps. The one I used is Command-semicolon, but you can set it to almost anything. Way cool if you ask me!

Comments (27)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030508130108314