I’ve tested it again with a new folder path, and it still works fine for me. You might need to change three paths from the following:
tell application "BetterTouchTool"
set isRunning to is_app_running "Spotify"
if isRunning then
tell application "Spotify"
if player state is playing then
set currentTrack to current track
set artistName to artist of currentTrack
set trackName to name of currentTrack
set albumCoverUrl to artwork url of currentTrack
set albumCoverPath to "/Users/hackettlai/Pictures/test/Spotify_cover.png"
do shell script "curl " & quoted form of albumCoverUrl & " -o " & quoted form of albumCoverPath
else
return " "
end if
end tell
else
set albumCoverUrl to "https://i.imgur.com/qFmcbT0.png"
set albumCoverPath to "/Users/hackettlai/Pictures/test/Spotify_cover.png"
do shell script "curl " & quoted form of albumCoverUrl & " -o " & quoted form of albumCoverPath
return " "
end if
end tell
"/Users/hackettlai/Pictures/test/Spotify_cover.png" <-- this is my local folder
"https://i.imgur.com/qFmcbT0.png" this is my blank png to display as a backup