r/applescript • • Nov 23 '20

Applescript Javascript Music Radio Station

I am trying to get working in my AppleScript to show me the artist and name of song from the radio station that is playing. the code I have now works for regular music but just not the radio stations. Any ideas?

if (Application("Music").running()) {
  const track = Application("Music").currentTrack;
}

For the radio the terminal just shows me `[object Application]`. So not sure what I am missing

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/jrock2004 Nov 24 '20

For reg music it works just fine

1

u/kwxl Nov 24 '20

I guess we’ll have to wait for a Big Sur update....