I want to write a script (shell or apple script) to tell iTunes to start playing music. Specifically a apple music radio station. I found out that you can get a url of the radio station something like this https://itunes.apple.com/ca/station/smooth-jazz/idra.985496511
But the problem is if I use apple script to open that url, it will play the music but it will also open a safari tab. Is there a way to script the radio playback without launching safari?
But the problem is if I use apple script to open that url, it will play the music but it will also open a safari tab. Is there a way to script the radio playback without launching safari?