More comments from this IP
Joram ⸬ 09 October 2018, 11:26 ⸬ Amsterdam, NL ⸬ Apple
It's better visible over here:
Joram ⸬ 09 October 2018, 11:24 ⸬ Amsterdam, NL ⸬ Apple
Great article, you changed my view on the touch bar!

I downloaded your config file and had a small problem with long titles in the Spotify widget so I edited the script to cut song titles with added terms like "Mono Version", "Remastered 2011", etc.

The Rolling Stones - (I Can't Get No) Satisfaction - Mono Version / Remastered 2002 will show up as: The Rolling Stones - (I Can't Get No) Satisfaction

This is done by cutting away all titles containing the "-" symbol.

Maybe someone will find it useful:

if application "Spotify" is running then
tell application "Spotify"
if player state is playing then
set naam to get name of current track
set naam to text 1 thru ((offset of "-" in naam) - 1) of naam
return (get artist of current track) & " - " & (naam)
return ""
end if
end tell
end if
return "" :: telegram :: twitter :: instagram :: facebook :: github