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