#Spotify Geeklet
##Install
-
Download zip from the releases tab.
-
Unzip to your chosen install location.
-
The files are set up to use
~/Documents/Geektool/Spotify/
('~'
means your home directory). If you installed somewhere else: a. OpenSpotifyNowPlaying.scpt
in Script Editor. b. Put your install location in line 10, in full, with a/
at the end. It should look something like this:set pathName to "Users/YourName/Documents/Geektool/Spotify/"
-
Open the geeklets from the 'glet' folder in Geektool.
-
In the
TrackArtwork
geeklet, change the image URL to the location of theartwork.jpeg
file. -
If you used a different install location in step 3, go through the remaining geeklets and change the command so it points at
SpotifyNowPlaying.scpt
. Don't alter theosascript
or-name
,-id
, etc. bits.
##What's New The previous version of this Geeklet got the track ID, downloaded the track info from the Spotify API, parsed it for the image URL, then downloaded and displayed that image.
Spotify have now introduced a a new 'artwork URL' property to their Applescript, removing the need to do all the above (which no longer works anyway).
SpotifyNowPlaying.scpt
gets all the track info, including the artwork URL.
The script then downloads the image to artwork.jpeg
. If Spotify is stopped or not open it copies default.jpeg
over artwork.jpeg
. You can therefore change the 'off' image by replacing default.jpeg
. Geektool determines how big the image displays on your desktop.
The script also stores the artwork URL in id.txt
, which allows it to compare before downloading the artwork and abort the operation if the URL is the same (i.e. the track hasn't changed). This stops it downloading the image anew every time the geeklet refreshes, meaning you can set the refresh rate at 1s.
##Screenshot
##Credits This is based mostly on BTSpotifyGeeklet by bryantung - https://github.com/bryantung/BTSpotifyGeeklet/