I need to write AppleScript that sets some value to Show scroll bars in new System Settings UI.
Screenshot of what I want to change in result
Here's a code with which I did come up
tell application "System Settings"
activate
set current pane to pane id "com.apple.Appearance-Settings.extension"
end tell
delay 0.1
tell application "System Events" to tell application process "System Settings"
-- ...
end tell
I found Accessibility Inspector application in which you can view the hierarchy of elements in any app. With its help, I wrote the working script: