2014年10月9日 星期四

Spotify Global Hot Key in OSX with Automator Script



Quote from -- modacular

  1. Open up the Automator Application (Applications/Automator.app) 
  2. Create a new document (⌘N) and choose the "Service" type for your document.
  3. On the "Service receives selected" item in the top side of the window select "no input" from the dropdown.
  4. Search for "Run Applescript" from the searchbar on the left side of the window.
  5. Drag the "Run Applescript" item in the main window area.
  6. Delete the (* Your script goes here *) line and paste this instead:
    tell application "Spotify" to playpause
  7. Save your script (File > Save or ⌘S) and give it a meaningful name like Spotify PlayPause :D
  8. Go to System Preferences > Keyboard > Shortcuts and select Services from the left column.
  9. Scroll down to the General Section and find your Spotify PlayPause item.
  10. Click the add shortcut button and press the combination of keys that will be your shortcut. (eg. I gave it the ⌘P shortcut).
  11. Test that it's working by clicking on System Preferences (next to the Apple Logo on top of your screen) > Services > Spotify Play Pause. (Actually this step is necessary for the shortcut to be registered to your system).
  12. You're done! Your shortcut is now available to you, in whichever program you have open.

Global-HotKey-for-Pause-Play-Next-Song-etc

沒有留言:

張貼留言