Copyright (c) 2012 Harish Narayanan
This is a simple Bash/Apple script to control Spotify from the command line on a Mac. It can be used to remotely control Spotify from other machines using SSH. In order to use it:
Make sure the 'spotify' file in this folder is executable:
chmod +x spotify
Copy the file to a convenient location in your PATH
Run it by typing:
spotify <option>
where <option> is one of
- status = Shows Spotify's status, current track details.
- play = Start playing Spotify.
- pause = Pause Spotify.
- next = Go to the next track.
- prev = Go to the previous track.
- vol up = Increase Spotify's volume by 10%
- vol down = Increase Spotify's volume by 10%
- vol # = Set Spotify's volume to # [0-100]
- quit = Quit Spotify.