Table checkbox buttons...getting their state

I’ve trolled throughout this site and the documentation and I haven’t been able to find anything that can tell me how to get the state of a checkbox in a table cell.

I’m sure it’s something simple that I’m just missing, can anyone provide me a snippet of code that shows how?

Thanks

set theState to (contents of data cell "col_1" of selected data row of theTableView)

… will return true or false for a checkbox in the data column ‘col_1’ in the selected row. This assumes that you’re using a programmatically created data source. You may be able to use the same or a similar technique for non-datasource tables (i.e those populated using “set content of theTableView to someList”) because while they don’t have a ‘proper’ datasource, they do seem to still respond to some of the data row/column/cell references, if I recall correctly.

j