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.

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 items or (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.

share|improve this question
    
Not sure I understand the question. "New folder with selection (xx items)" is cmd+ctrl+n. –  Harv Aug 7 '11 at 2:09
add comment

3 Answers 3

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.

share|improve this answer
1  
I know. I'd like to change it to cmd+g (using keyboard shortcuts) and change "compress" to cmd+opt+z but I can't change either because the menu items dynamically display the number of files selected. –  user9440 Aug 7 '11 at 2:21
add comment

The shortcut for a new folder with selection is Control + Command + N.

There isn't a shortcut for Compress, but you can script it and then assign a shortcut to the script:

Use AppleScript Editor and refer to this script from Super User on adding a shortcut:

tell application "System Events" to tell process "Finder"
    tell menu 1 of menu bar item 3 of menu bar 1
        click (menu item 1 where name starts with "Compress")
    end tell
end tell
share|improve this answer
add comment

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".

That's it.

share|improve this answer
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.