News for hackers. Stuff that matters.
Re:Skiptracing: Reversing Spotify.app by ClassyJacket on Sunday June 09, 2019 @01:40AM (#20137351)
I was looking for something just like this in order to create an app that displays current song information on the Touch Bar. Excellent!

Edit: Doesn't look like this would be practical for distribution to others but I still might make it for myself.

Re:Skiptracing: Reversing Spotify.app by zuppy on Sunday June 09, 2019 @03:17AM (#20137711)
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

You can also install a collection of scripts from here: https://goldenchaos.net/goldenchaos-btt.html

You will need Better Touch Tool for that: https://folivora.ai/

Re:Skiptracing: Reversing Spotify.app by jrowley on Sunday June 09, 2019 @11:12AM (#20139697)
Yeah, I use apple script to display current track / artist in my tmux status bar. Super handy!
Re:Skiptracing: Reversing Spotify.app by danthelion on Sunday June 09, 2019 @04:18AM (#20137920)
I used to play around with similar projects for macos, wrote an app which displays current song info in the menubar (https://github.com/danthelion/pyet) and a python wrapper for the applescript “api” https://github.com/danthelion/wasp

Applescript is actually a lot of fun if you decide to look into it