Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I listen to music while I work, and it can be tedious to have to locate iTunes to turn my music on/off, which I have to do often. I want to setup shortcuts so I can start/stop my music no matter what application I'm currently in.

I've seen that OSX lets you create application shortcuts, however they don't seem to be working for me for iTunes. I've tried to create a shortcut named 'Play', which matches the name of the command in the iTunes menu exactly, yet when I use the shortcut I just get a standard warning sound from OSX that you get when you're trying to do something that you cannot do.

EDIT: I have found that I can create a shortcut for the 'Stop' command, just not 'Play'. And the 'Stop' shortcut I've created only works when iTunes is the application in focus. So now I'm even more confused.

Here's my shortcut:
enter image description here

And here's the iTunes menu:
enter image description here

Any ideas as to what I might be doing wrong? Or is there another way to go about this?

share|improve this question
add comment

3 Answers

One simple solution, if you don't have a keyboard with shortcuts, is to set the miniplayer to always stay on top of other windows for a fast click.

Note: Stackoverflow won't let me post pictures of this because my reputation is too low, but it works for me :)

share|improve this answer
add comment

If you have an Apple keyboard, F8 (or fn-F8) should start or pause playback. If you don't, you might be able to use KeyRemap4MacBook to remap other key combinations to the special F-keys.

Alfred also has some keywords for controlling iTunes, like play and next. You can assign shortcts to them by creating a workflow:

You could also assign a shortcut to a script like this:

tell application "iTunes"
    if player state is playing then
        pause
    else
        play
    end if
end tell

I use scripts like this to jump forward and backward:

try
    tell application "iTunes"
        set player position to player position + 30
    end tell
end try
share|improve this answer
    
I'm not using a Mac keyboard, and F8 isn't working. I tried KeyRemap4MacBook's event viewer and when I press F8 it shows that fn-F8 is occurring. Is there a reason this isn't working to play/pause the music? Also, is there a place where the shortcut fn-F8 is set up and can be changed? Mostly I'd just like to see if that shortcut is still in place, since fn-F8 doesn't seem to be working for me. –  Nic Foster Apr 10 '13 at 18:39
    
The special F-keys don't work on many keyboards by default, but you can use KeyRemap4MacBook to add them for some keyboards. –  Lri Apr 11 '13 at 4:09
add comment
up vote 0 down vote accepted

I've found an application that took care of this nicely for me. I should also note that this was made more difficult because I have a non-Mac keyboard, so I couldn't just use OSX's built-in shortcut for iTunes, as that only seems to work on Mac keyboards.

The application is called Quicksilver, here's the link to it: http://qsapp.com/download.php

It took about 1 minute to download and install, and another 1-2 minutes for me to figure out how to make a trigger for iTunes.

Here are the steps I took:

  1. Download and install Quicksilver
  2. Make sure to select the iTunes plugin.
  3. Setup a hotkey that opens Quicksilver. You get to do this on installation, the default hotkey is ^space, which is nice because it's similar to the default of cmd-space that is used for spotlight.
  4. Open Quicksilver using the hotkey you setup.
  5. On the top-right of the open dialog there is a upside-down carat symbol (looks like a down arrow), click that and then click Triggers.
  6. In the Triggers options on the left, click the iTunes icon (if you don't have this then you probably didn't install the optional iTunes plugin I mentioned on step #2).
  7. Now find 'Play/Pause', check the box next to it, and setup a hotkey by clicking on the hotkey button in that row. Choose whatever shortcut you want and now iTunes will play/pause to your liking.
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.