我正在尝试使用applescript禁用Siri,我需要单击确认按钮。这是我的代码:
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.speech"
end tell
delay 0.5
tell application "System Events"
tell process "System Preferences"
-- click checkbox "Enable Ask Siri" of window "Siri"
if value of checkbox "Enable Ask Siri" of window "Siri" is 1 then
click checkbox "Enable Ask Siri" of window "Siri"
end if
click button "Turn Off" of window "Dictation" of window "Siri"
end tell
end tell下面这一行不起作用
click button "Turn Off" of window "Dictation" of window "Siri"

发布于 2020-05-07 01:19:55
您试图单击的工作表按钮,例如:
变更:
click button "Turn Off" of window "Dictation" of window "Siri"To:
click button "Turn Off" of sheet 1 of window "Siri"https://stackoverflow.com/questions/61647305
复制相似问题