I am attempting to attach a tool utilizing applescript. My script accurately opens sys pref. and selects Allow Change Management however I can not determine how one can choose gadgets from the brand new window that opens.

enter image description here

enter image description here

here is the present script:


if working of utility "System Preferences" then
    strive
        inform utility "System Preferences" to give up
    on error
        do shell script "killall 'System Preferences'"
    finish strive
    delay 0.1
finish if

repeat whereas working of utility "System Preferences" is true
    delay 0.1
finish repeat

inform utility "System Preferences" to ¬
    reveal anchor "Change" of pane "com.apple.choice.universalaccess"

inform utility "System Occasions"
    
    inform utility course of "System Preferences"
        repeat till (checkbox "Allow Change Management" of ¬
            tab group 1 of group 1 of window 1 exists)
            delay 0.1
        finish repeat
        click on checkbox "Allow Change Management" of ¬
            tab group 1 of group 1 of window 1
        delay 4
        
        --click button "Shut" of window 1
        
    finish inform
    
    --click button of group 1 of group 1
    --tell utility "System Occasions" to get identify of each course of
finish inform

delay 0.02

-- give up utility "System Preferences"```


You have to
log in to reply this query.

Browse different questions tagged .