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.

How would I assign

  • ⌘1 to Music (Library item)
  • ⌘2 to Movies
  • ⌘3 to Podcasts

Surprisingly enough, these key bindings are not assigned to anything yet, and IMO they would be most convenient ones (see e.g. Mail.app).

I can't see any relevant item in AppleScript dictionary for iTunes…

share|improve this question

2 Answers 2

up vote 3 down vote accepted

For each Source/Library item (Music,Movies,Podcasts) you want to open with a shortcut, create a new Applescript as follows

tell application "iTunes"
try
    set view of front browser window to (get some playlist whose special kind is Podcasts)
end try
end tell

replacing "Podcasts" with "Music” or "Movies", and save it with to your ~/Library/iTunes/Scripts folder (if this doesn´t exist, create it!), giving it an unique name (like "show podcasts","show movies").

Next, open "System Preferences">"Keybaord">"Keyboard Shortcuts" and select "Application Shortcuts". Click on the little "plus" button to add a new shortcut with:

Application: iTunes
Menu Title: show podcasts   —this has to be exactly the name you gave your script
Keyboard Shortcut: <press your desired shortcut, eg. "cmd+2">

Now pressing "cmd+2" (or whichever shortcut you defined) while being in iTunes will open the Podcast library item.

share|improve this answer
    
Genius :-) That's exactly what I was hoping to achieve. –  piobyz Feb 8 '11 at 7:41
    
Do you know any workaround for "Apps" item (special kind (none/Books/folder/Genius/iTunes U/Library/Movies/Music/Party Shuffle/Podcasts/Purchased Music/TV Shows, r/o) : special playlist kind)? –  piobyz Feb 8 '11 at 12:17
    
Unfortunately, no. And if i select Apps/Ringtones and try to get their name/id, nothing returns. :-( –  Asmus Feb 8 '11 at 16:03

Try going into Settings → Keyboard → Keyboard Shortcuts tab → Application Shortcuts in the left panel.

There you can add a custom shortcut to any specific application menu item. Just add itunes to the list and add your shortcut.

share|improve this answer
    
There are no such items in iTunes' menu. –  piobyz Feb 7 '11 at 8:38
    
@piobyz It's not the menu in iTunes. It's the global settings on your Mac. –  Diago Feb 7 '11 at 9:37
1  
This does not work here, as there are no menu items in iTunes to select sources that then could be triggered from "System Preferences">"Keybaord">"Keyboard Shortcuts" –  Asmus Feb 7 '11 at 11:32

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.