Я пытаюсь отключить Siri с помощью applescript, и мне нужно нажать кнопку подтверждения. Вот мой код:
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"
![Siri Turn Off Button](https://i.stack.imgur.com/FLmi4.png)