3 ms·
you can already do that without hacking anything, Spotify exposes that information through Apple Script: if application "Spotify" is running then tell
by zuppy 7y ago
you can already do that without hacking anything, Spotify exposes that information through Apple Script:
if application "Spotify" is running then
tell application "Spotify"
if player state is playing then
return (get artist of current track) & " - " & (get name of current track)
else
return ""
end if
end tell
end if
source:
https://vas3k.com/blog/touchbar/#scroll60 https://vas3k.com/blog/touchbar/#scroll60
You can also install a collection of scripts from here: https://goldenchaos.net/goldenchaos-btt.html https://goldenchaos.net/goldenchaos-btt.html
You will need Better Touch Tool for that: https://folivora.ai/ https://folivora.ai/
- jrowley 7y agoYeah, I use apple script to display current track / artist in my tmux status bar. Super handy!