September 10 2011 - 9:49 am
Key Code Searching
Here's a snippet I've been using for awhile which I just got around to posting on the key codes page. I keep my iTunes Column Browser set with Artists and Albums listed On Left. Whenever I'm looking for a particular album I run this script to select the Music library and put focus on the Search box:
tell application "iTunes" activate -- select the Music library reveal (some playlist whose special kind is Music) end tell tell application "System Events" -- bring focus to Search box - Command-Option-F key code 3 using {command down, option down} end tell
I've given it a keyboard shortcut of Command-Option-S.
More information on AppleScripting iTunes with key codes and keystrokes is here.