I just downloaded iTunes, and the new version reminded of an annoyance that has been with iTunes since the beginning--namely, that there's no keyboard shortcut to switch between normal and compact window modes. So I took it upon myself to figure out how to make one for it. The result can be found at:
http://reverie.rem.cmu.edu/~reverie/Localized.rsrc.sit
which you should unstuff and then use the Finder to copy the file into iTunes.app/Contents/Resources/English.lproj/ (control-click on the iTunes application and select "Show package contents" to find this folder). Make sure iTunes isn't running before you start.
If you want a more detailed explanation of how this hack was created, read the rest of the article.
[Editor's note: I have installed this modified file, and it works just as described. A couple of cautions -- make a copy of your iTunes app in the Finder before you start, and do not use the Terminal's 'cp' command. These files are resource-fork-only files, and you will kill their contents if you use the 'cp' command! If you must use the Terminal, use "CpMac" instead! Don't ask me how I know this...]
The difficulty with this edit lies in the fact that iTunes doesn't use standard menu resources, forcing me to reverse-engineer the resources using ResEdit's hex editor. I eventually tracked it down to being in the çMNU (that's cedille-M-N-U) resource. If you look at the ascii output of each menu item, you'll see that, for example, Copy looks like:
copyC ^Copy
Where copy is the 4-character internal name of the menu item, C is the keyboard shortcut, ^ is upside-down from what's actually displayed, and Copy is the displayed name. A menu item that doesn't have any shortcut, like Clear in iTunes, will look like:
clr ^ ^Clear
The upside-down ^ characters can actually represent any number of ascii codes--I think they're all control sequences (if you know your unix, you'll know what these are). In this case, the blank control code is 00 hex.
I still can't figure out how to create something like the Command-Shift-A that represents Select None in iTunes, and since I wasn't feeling particularly creative, I decided to use Command-Z for Zoom and just remove the shortcut for Undo. (Who ever uses Undo in iTunes, anyway?) To do this, I first made a backup of iTunes (note: ALWAYS do this). Then I opened resource 130 with the Hex Editor, selected the Z for Undo, then selected the hex code that got a rectangle around it as a result. I typed a 0, and it changed the Z to an upside-down ^. Then I went to resource 135, found the upside-down ^ for Zoom, selected it, and changed it to a Z. Save the file, launch iTunes, and voila, Command-Z now switches between the two window modes!
Note that changing Cocoa apps is completely different, since they use .nib files (editable by the Interface Builder) instead of .rsrc files. In fact, editing many Carbon or Classic apps is different than this, because they often have a differently named set of resources that can be edited with a much nicer interface.
If anyone has more information on more complicated keyboard shortcuts (Command-Shift-A, Command-Option-Down, etc.), I would be very interested in hearing it.
Mac OS X Hints
http://hints.macworld.com/article.php?story=2001110402363891