iTunes 11.0.2: Can't detect AirPlay device any more
| Originator: | nriley | ||
| Number: | rdar://13492061 | Date Originated: | 24-Mar-2013 03:21 PM |
| Status: | Duplicate/5829695 | Resolved: | |
| Product: | iTunes | Product Version: | iTunes 11.0.2 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: In iTunes 10 and earlier, it was possible to examine the AirPlay button to determine which AirPlay device was selected. There appears to be no way to do this in iTunes 11. Steps to Reproduce: In iTunes 10.7, the following AppleScript would return the current AirPlay device (or "missing value" if there was no device selected). tell application "System Events" tell application process "iTunes"'s window "iTunes" set remote_speakers to (buttons whose attribute "AXDescription"'s value begins with "AirPlay")'s title end tell end tell Expected Results: Some accessibility attributes, or another way to determine the current AirPlay device (not having to go through Accessibility would be nice!). In iTunes 10.7, the button's attributes look like: AXRole: "AXButton" AXRoleDescription: "button" AXParent: "<AXWindow: "iTunes">" AXWindow: "<AXWindow: "iTunes">" AXTopLevelUIElement: "<AXWindow: "iTunes">" AXPosition: "x=1507 y=1021" AXSize: "w=70 h=20" AXSubrole: "(null)" AXDescription: "AirPlay, Furrball" AXEnabled: "true" AXFocused (W): "false" AXTitle: "Furrball" AXHelp: "Choose which speakers to use." Actual Results: In iTunes 11, the corresponding button's attributes look like: AXRole: "AXButton" AXRoleDescription: "button" AXParent: "<AXWindow: "iTunes">" AXWindow: "<AXWindow: "iTunes">" AXTopLevelUIElement: "<AXWindow: "iTunes">" AXPosition: "x=969 y=515" AXSize: "w=28 h=20" AXSubrole: "(null)" AXDescription: "airplay" AXEnabled: "true" AXFocused (W): "false" AXTitle: "(null)" AXHelp: "Choose which speakers to use." AXEnabled: "true" AXFocused (W): "false" The AXTitle is always null regardless of the state of AirPlay. Regression: n/a Notes: A workaround in OS X 10.8 would be to use the system-wide AirPlay support, which can be easily interrogated and controlled, instead of iTunes-specific support. I could not find a workaround for 10.7 or 10.6 aside from downgrading iTunes.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Fixed!
This was fixed in iTunes 11.0.3 in a much nicer way than I expected. Then again, when you look at the bug number this was duped against…
http://www.macstories.net/news/itunes-11-0-3-supports-airplay-speaker-control-via-applescript/