AppleScript made for Alfred and Spotify
- Play any song in Spotify
- Launch Alfred. In my case press option + space
- Type lyrics and press enter
- Safari will now open and show you the lyrics
This is a very basic/"manual" script. It does the following:
- Use Spotify API to get current artist and current track
- Open Safari
- Open Genius and search for current track.
- I found that this could be done by entering the URL "http://genius.com/search?q=" + track_name + " " + track_artist
- Simulate a click on the most popular result.
- Simulate cmd + shift + r to get into reading view
- Automated scroll so that it follows the Lyrics.
- It may be possible to do this simply by comparing length of the song and length of lyrics, and then setting a fixed scroll speed.