Sunday, November 27, 2022

#1 2003-04-30 03:45:58 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

AppleScript Studio - Setting 'state' of checkboxes

A checkbox is classified as a 'button' in AppleScript Studio. To work with them, you should know that their primary property is their 'state', returned as an integer. 1 or 0. 1 is checked, 0 is not checked. You'll probably need to 'get' the state of checkboxes more than you'll need to 'set' them.

OS version: OS X


set state of button "my_checkbox" of window "my_window" to 1

set state of button "my_checkbox" of window "my_window" to 0

One mans trash is another mans treasure



Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)