Skip to content

Instantly share code, notes, and snippets.

@Aehmlo
Last active June 21, 2018 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aehmlo/cd569a95f636a2193d809f9f5a9e98c1 to your computer and use it in GitHub Desktop.
Save Aehmlo/cd569a95f636a2193d809f9f5a9e98c1 to your computer and use it in GitHub Desktop.
Prevent live tracks in Spotify on macOS.

Setup

  1. Paste (or type, or whatever) the .scpt file below into Script Editor.
  2. Export the script as an application (no need for code signing). Doesn't really matter where, but put it somewhere you can find it.
  3. Optional, but makes usage much less annoying: edit No Live Spotify Tracks.app/Contents/Info.plist and add the value NSUIElement = "1" (i.e. <key>NSUIElement</key><string>1</string>) to keep the app from showing up in the Dock.
  4. Add the application as a login item (System Preferences > Users & Groups > User > Login Items).
  5. To start the application without logging out and back in first, just do 'No Live Spotify Tracks.app/Contents/MacOS/applet' & and enjoy.
repeat while true
delay 1
tell application "Spotify"
if (name of current track contains "live") or (name of current track contains "Live") then
next track
end if
end tell
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment