Get/Set value of Checkbox

All,
How do I set/get value of a checkBox ? I have an app that has a checkbox. I have declared it in my script as

property aCheckBox : missing value

and linked this to the Checkbox in my app.
This checkbox is checked by default. I have a function where I need to uncheck its value, but the following piece of code doesn’t work:

on button_pickClick_(sender)

set my aCheckBox to false
...

end button_pickClick_

I want to get the value(whether checked/unchecked) of the checkbox.

Hi,

just change the property state


aCheckBox's setState_(0)

or


aCheckBox's setState_(current application's NSOffState)

interesting that plain AppleScript syntax works too


set state of aCheckBox to 0

Thanks StefanK