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.

As I know you can find a limit of shortcut in system preference > Keyboard > Keyboard Shortcut where you can find other shortcut and how must change it? for example if I change the cmd + O to enter where can I go? is there any software that can do it for me or I must do it in terminal (How?).

P.S: I read some where that list of shortcuts for each apps save in Localized.rsrc but I have 2 problem?

  • I check and in snow leopard I don't have this file.
  • How can find general shortcut related to which apps? like capture image or copy & pase or ...
share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

The shortcuts for each application can be easily changed in the very preference menu you mentioned.

Which shortcuts can be changed is determined by what options are in that application's menu. So for Finder, you can customize "New Finder Window" and etc. etc. whatever is in the menu.

To change the shortcut for "Open" (which happens to be Finder -> File -> Open in the menu) you go to the System Preferences Keyboard Shortcuts, go to Application shortcuts, find "Finder", press the "+" button, and add a new option with name "Open" (exactly spelled as the menu option) and enter a keyboard shortcut. alt text

Note that you can't use the enter key or anything: you can only use the modifier keys (shift, command, control, fn) and numbers or letters.

For general shortcuts you can scroll up into "All Applications" and add a shortcut for "Copy" or "Paste" or which will toggle for whichever application has that menu option in its menu.

EDIT: Response to comments:

1) If you can't find the exact name of a menu command or if there isn't a menu command... well, you just can't set a shortcut unless you use some kind of a third party application that intercepts keystrokes (kinda like AutoHotKey but on Mac). Thus for Quick Look, it doesn't work since the menu command (there is a menu option for it in Finder File->Quick Look) adds the name of the file to be "Quick Looked", e.g. "Quick Look 133.png." I believe in Leopard it may have worked if one just set "Quick Look" to whatever shortcut under Finder, but it doesn't work in SL for me.

2) Screen Capture Cmd+Shift+3 is universal: it's a full screen screenshot. Cmd+shift+4 is similar except it lets you select a box to screen shot. I'm not sure what you mean which shortcuts are for which apps... Either it's listed under the app (in the preferences) or it's universal and applies to either every application with the menu option or the system itself.

EDIT 2: I'll add even more when I have time

a) To my knowledge CUSTOM keyboard shortcuts are stored in com.apple.universalaccess.plist and com.company.application.plist (e.g. com.apple.finder.plist) located in the ~/Library/Preferences folder.

com.apple.universalaccess.plist lists the apps with custom shortcuts: alt text

com.apple.finder.plist lists the actual custom shortcuts for finder under NSUserKeyEquivalents:

alt text

EDIT 3:

b) I believe that the default shortcuts for Cocoa apps are stored in the nib files, for example ../Finder/Contents/Resources/English.lprog/MenuBar.nib or seomthing like that. I've successfully edited these nib files MANUALLY using interface builder to change the keyboard shortcuts for the menu bar items. (Whether there are shortcuts that are not menu bar items and not defined by the system I don't know) Thus I don't know of any command line way either...

The nib:

alt text

I don't know whether this serves your purpose well. As a side note, for completeness, to edit a compiled nib file like those of finder... is an entirely different answer on its own. This article sums it up well. Basically you work with an uncompiled nib to edit a compiled nib: If you undertake this journey and have trouble finding an uncompiled nib I've uploaded one here.

If I ever find a command line method or learn more about where applications store keyboard shortcuts I will update this answer accordingly.

EDIT: Final Note These nibs are in xml format or something and can be opened by text editors... that might allow for... I don't know. :D

share|improve this answer
    
also note that your linked article is from 2002 :) os x has changd alot since tthen. –  Vervious Aug 28 '10 at 22:39
    
I know it was for 2002 so I asked this question otherwise I do whatever he said, but now I have some more questions. 1- in your example you can find "Open" in finder menu and make new option as the exact name action("Open") but what if I can't find "Exact name of menu command" like shortcut for Quick look(no apps no menu no...) or etc.? 2- and also how find what shortcut related to which apps e.g. screen capture (shift+cmd+3) is for what apps?(maybe it was not a good example :( ) –  Am1rr3zA Aug 29 '10 at 0:54
    
see the edits! :D –  Vervious Aug 29 '10 at 2:09
    
+1 Tanx for you answer I got some of my questions but still have little more, indeed I want some command line method and also want know the file that store shortcut. –  Am1rr3zA Aug 29 '10 at 11:17
add comment

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.