我正在尝试编写一个脚本来设置iTunes中“搜索”框中的“放大镜”。
这有效:
confirm text field 1 of window "iTunes" of application process "iTunes"
这不是:
confirm menu button 1 of text field 1 of window "iTunes" of application process "iTunes"
我得到了可怕的“系统事件出错:无法获取窗口iTunes无效索引的文本字段1的菜单按钮1”。
到目前为止,我已经“确认”了这些:
confirm text field 1 of window "iTunes" of application process "iTunes"
confirm text field 0 of window "iTunes" of application process "iTunes"
confirm menu button of text field 0 of window "iTunes" of application process "iTunes"
confirm menu button of text field 1 of window "iTunes" of application process "iTunes"
confirm button of text field 0 of window "iTunes" of application process "iTunes"
confirm button of text field 1 of window "iTunes" of application process "iTunes"
confirm text field of text field 1 of window "iTunes" of application process "iTunes"
confirm menu button of text field of text field 1 of window "iTunes" of application process "iTunes"
confirm button of text field of text field 1 of window "iTunes" of application process "iTunes"
confirm text field of text field of text field 1 of window "iTunes" of application process "iTunes"