osx - Click checkbox that changes name -


i'd click checkbox changes name (it's called either "checkbox 3" or "checkbox 4", can't rely on name).

i've tried this:

tell application "system events" tell process "aycons"     set thecheckbox checkbox "checkbox 3" of window 1     tell thecheckbox         if not (its value boolean) click thecheckbox     end tell end tell 

unfortunately doesn't fit needs.

this attributes of checkbox, thoughts on how can click it?

enter image description here enter image description here

reference index instead, should not change may not in obvious linear order.

eg,

set thecheckbox checkbox 2 of window 1 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -