I would like to write a script (AppleScript or shell script) to open a URL such as


which then launches iTunes and play a radio station.

The problem is that all the commands I found will first open a Safari tab and then redirect to iTunes for the playback.

Is there a way to not have an empty Safari tab/window left after launching this URL?

1 Answer 1


Replace your link with this one:


You can open it without open your safari. Of course, only works with iTunes installed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .