我已经部分成功地让 Indigo 在 iTunes 11 中打开 Airplay 设备,但我需要一些帮助。我可以选择并打开一个扬声器,但我真的希望能够选择多个按钮,然后打开所有或部分扬声器。这是我所拥有的:
tell application "iTunes" to activate
tell application "System Events"
tell window "iTunes" of process "iTunes"
click (first UI element whose help is "Choose which speakers to use.")
keystroke "Master Bedroom" & return
--perform action "press" in radio button "Multiple" of window "iTunes"--
end tell
end tell
因此,该代码将其打开并突出显示 Master Bedroom 行,但它实际上并没有选中复选框,我玩弄了注释掉的行,但无法让它工作。想法?