Has anybody found a decent solution to this? Custom keyboard shortcuts (as defined in System Preferences > Keyboard) don't work for any dynamic menus like Compress XX itemsor (new in Lion) New Folder with Selection (XX items) because they add the number of files selected after them.
Are there undocumented wildcards for keyboard shortcuts?
Unlike Compress, New Folder with Selection (XX items) does have a default keyboard shortcut, but there still doesn't seem to be a way to change it.
I found it, for Lion:
- Run Automator
- create a "Service" which compresses a "file or folder" for the application "Finder"
- Save the Service with a name like "Compress"
- Go to Preferences -> keyboard -> Shortcuts -> Services, and add the Shortcut you want for "Compress" under "Finder".
There aren't any wildcard characters that I am aware of. This is the first I'm running into this problem.
One could work around this by using GUI scripting, which refers to menu items by their position in the menu instead of their name. You could then use another program to enable system-wide use of whatever hotkey you wanted for this script.