veadar
4/10/2018 - 11:26 AM

toggle airplay speaker.scpt

tell application "iTunes"
	set selAirplayDevices to (get every AirPlay device whose selected is false)
	if selAirplayDevices is not {} then
		set current AirPlay devices to item 1 of selAirplayDevices
	end if
end tell