1

I have used Accessibility Inspector to confirm the names of the windows and buttons involved, but (on macOS 10.12) AppleScript will not "click" the No button in this Logitech window. Any guidance is appreciated. Thanks.

tell application "Logitech Camera Settings"
activate
end tell
delay 5
tell application "System Events"
    click button "No" of window "Logitech Camera Settings" of application process "Logitech Camera Settings"
end tell

Screenshot of Logitech Window AND Accessibility Inspector

  • Do you get an error message alongside the button not being clicked? – grg Sep 27 '17 at 13:43
  • Did you give your script accessibility access? If you didn't, it won't work. – SilverWolf Sep 27 '17 at 13:44
1

It seems the sheet is missing in the element hierarchy in your AppleScript.

click button "No" of sheet 1 of window "Logitech Camera Settings" of application process "Logitech Camera Settings"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .