content: -- Opens iTunes and plays Beats 1 radio if iTunes is not currently playing.
  -- Checks every 10 seconds to restart the stream if it dies.
  
  repeat
  	tell application "iTunes" to activate
  	tell application "iTunes"
  		if player state is not playing then
  			tell application "System Events"
  				tell window 1 of application process "iTunes"
  					repeat while (radio button "Radio" of radio group 2 exists) is false
  						delay 0.5
  					end repeat
  					click radio button "Radio" of radio group 2
  					repeat while (button "Listen Now" of group 2 of group 1 of group 1 of UI element 1 of scroll area 2 exists) is false
  						delay 0.5
  					end repeat
  					click button "Listen Now" of group 2 of group 1 of group 1 of UI element 1 of scroll area 2
  				end tell
  			end tell
  		end if
  	end tell
  	delay 10
  end repeat
  