Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use Command-F to activate search in iTunes Apps
It's been bugging me for some time that I have to use Command-Option-F to get to the search field in iTunes (or tab a couple of times to get there). So I started looking for some way to assign another keyboard shortcut for getting to the search field.

I found the solution in the Localizable.strings file, which you reach by control-clicking on iTunes, choosing Show Package Contents, and then navigating to Contents -> Resources -> English.lproj. Almost at the bottom of the file there are some commands in a section labeled "Hidden Keyboard Commands." One of these commands is called Target Search Field.

I used the following little trick (which I found here on Doug's AppleScripts for iTunes site) to assign Command-F as the shortcut to the Target Search Field command (quit iTunes first):
defaults write NSUserKeyEquivalents \
-dict-add "Target Search Field" "@F"
I also reassigned the full-screen option of the visualizer, which previously used Command-F, to use Command-Option-F:
defaults write NSUserKeyEquivalents \
-dict-add "Full Screen" "@~F"
And voilĂ ! I'm happy again!

[robg adds: We've previously run a few hints about using NSUserKeyEquivalents to do interesting things. I tested this reassignment, and it worked as described -- and it makes more sense to me than the default arrangement.]
  • Currently 2.67 / 5
  You rated: 2 / 5 (3 votes cast)

Use Command-F to activate search in iTunes | 4 comments | Create New Account
Click here to return to the 'Use Command-F to activate search in iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Command-F to activate search in iTunes
Authored by: Juneappal on Feb 22, '06 08:14:45AM

I can see how the command-f might satisfy the muscle memory for some people, but in iTunes, I have become used to hitting tab-tab to get from the music list to the search box. One more tab gets me back to the results anyways, so it seems like a consistent way to navigate.

[ Reply to This | # ]
Use Command-F to activate search in iTunes
Authored by: DougAdams on Feb 22, '06 08:43:28AM

Yeah. I'm a tab-tab guy, too.

Doug's AppleScripts for iTunes

[ Reply to This | # ]
Use Command-F to activate search in iTunes
Authored by: mudiappahpillai on Feb 22, '06 09:43:11PM

Thank you!

[ Reply to This | # ]
Use Command-F to activate search in iTunes
Authored by: freerangehuman on Feb 22, '06 09:53:34PM
After executing these commands in Terminal, the new key assignments appear on the list of Keyboard Shortcuts in the system preferences, meaning you can accomplish the same thing in system preferences without using the command line. The catch, though, is that Target Search Field is not a default menu item, so you don't know exactly what command to enter! Is there a way to list all the possible commands for a given application?

On a related note, I finally found how to get a working keyboard shortcut for Update Songs on "iPod". Those are &^@%#$ curly quotes! Typed option-left bracket and option-shift-left bracket, for the left and right quotation marks respectively.

[ Reply to This | # ]