how to get table's active cell

I have a table and would like to get the contents of the cell being edited by the user. I’m not sure how to do this most easily.

In reading through some posts, it seems as if one method is to keep track of where the user clicks. However, wouldn’t I also have to script whether the user tabs to the next cell?

I just want to make sure I’m not missing an easier way.

tell table view "table_name" of scroll view "table_name" of window 1
			set selectedDataRows to get selected data rows of table view "table_name" of scroll view "table_name" of window 1
				set firstDataRow to item 1 of selectedDataRows
				set variable_name to get content of data cell 1 of firstDataRow
			on error the error_message number the error_number
				set the error_message to error_message
			end try
		end tell