More comments from this IP
Joram ⸬ 09 October 2018, 11:26 ⸬ Amsterdam, NL ⸬ Apple
#
It's better visible over here:

https://pastebin.com/4QjvmNrS
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.

Example:
https://open.spotify.com/track/57J2znxukXsXzS3XPuZ1TG?si=xGAV7v5ASaq9v25XEQboQw
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)
else
return ""
end if
end tell
end if
return ""
me@vas3k.ru :: telegram :: twitter :: instagram :: facebook :: github