Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save f7urry/acdc59c087dc4ff9685ae1cf14e298cc to your computer and use it in GitHub Desktop.
Save f7urry/acdc59c087dc4ff9685ae1cf14e298cc to your computer and use it in GitHub Desktop.

Revisions

  1. @NoobsArePeople2 NoobsArePeople2 revised this gist Mar 9, 2013. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,20 +11,20 @@
    4. Click the "Scan Next Track" item in the left-hand list. You can also select this key by focusing the USB Overdrive window and pressing the actual key on the keyboard.
    5. In the right-hand column click the dropdown and select "Execute AppleScript".
    6. Paste the following AppleScript:
    ```
    tell application "Spotify"
    next track
    end tell
    ```
    <pre>
    tell application "Spotify"
    next track
    end tell
    </pre>
    7. Repeat steps 4 and 5 but select "Scan Previous Track". Paste the following AppleScript:
    ```
    tell application "Spotify"
    previous track
    end tell
    ```
    <pre>
    tell application "Spotify"
    previous track
    end tell
    </pre>
    8. Repeat steps 4 and 5 but select "Play/Pause". Paste the following AppleScript:
    ```
    <pre>
    tell application "Spotify"
    playpause
    end tell
    ```
    </pre>
  2. @NoobsArePeople2 NoobsArePeople2 created this gist Mar 9, 2013.
    30 changes: 30 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    ## Requirements

    1. [USB Overdrive](http://www.usboverdrive.com/)
    2. A non-Apple keyboard with media keys (or keys you want to make "media" keys). For reference, I'm using a [Microsoft Sidewinder X4](http://www.microsoft.com/hardware/en-us/p/sidewinder-x4-keyboard)

    ## Set Up

    1. Plug in your keyboard and install USB Overdrive.
    2. Open USB Overdrive. Click into the Settings tab.
    3. Click the dropdown and select "Any Keyboard, Any Application"
    4. Click the "Scan Next Track" item in the left-hand list. You can also select this key by focusing the USB Overdrive window and pressing the actual key on the keyboard.
    5. In the right-hand column click the dropdown and select "Execute AppleScript".
    6. Paste the following AppleScript:
    ```
    tell application "Spotify"
    next track
    end tell
    ```
    7. Repeat steps 4 and 5 but select "Scan Previous Track". Paste the following AppleScript:
    ```
    tell application "Spotify"
    previous track
    end tell
    ```
    8. Repeat steps 4 and 5 but select "Play/Pause". Paste the following AppleScript:
    ```
    tell application "Spotify"
    playpause
    end tell
    ```