tell application "iTunes"
-- set theDevice to (get name of AirPlay devices) -- {"Computer", "AE Server"}
-- set current AirPlay devices to AirPlay device "AE Server"
-- # possible values for kind are computer/AirPort Express/Apple TV/AirPlay device/unknown
-- set apDevices to (get some AirPlay device whose kind is computer)
-- set current AirPlay devices to apDevices
set apDevices to (get every AirPlay device whose available is true)
set current AirPlay devices to apDevices
set sound volume to 100
try
play track "Interruption Sound" of playlist "Alerts"
on error
beep
end try
end tell
Users browsing this forum: No registered users and 2 guests