Retrieving data cell contents

I can’t seem to get this to work:

on awake from nib theObject
	tell window "mainWin"
		tell table view "theTable" of scroll view "theTableScroll"
			set tableDataList2 to {}
			repeat with i from 1 to 3
				set tableDataList to {}
				set tableDataList to {"Item " & i, "Cell 2, Row" & i, "Cell 3, Row" & i}
				copy tableDataList to end of tableDataList2
			end repeat
			
			set contents to tableDataList2
		end tell
	end tell
end awake from nib

on clicked theObject
	if name of theObject = "theTable" then
		tell window "mainWin"
			tell table view "theTable" of scroll view "theTableScroll"
				set thisRow to clicked row of theObject
				set thisCol to clicked column of theObject
				set theData to data source
				set theValue to contents of data cell thisCol of data row thisRow of theData
			end tell
		end tell
	end if
end clicked

Whenever I run this I get the following error message:

Any help would be appreciated

Fixed it:

on awake from nib theObject
tell window “mainWin”
tell table view “theTable” of scroll view “theTableScroll”
set tableDataList2 to {}
repeat with i from 1 to 3
set tableDataList to {}
set tableDataList to {"Item " & i, “Cell 2, Row” & i, “Cell 3, Row” & i}
copy tableDataList to end of tableDataList2
end repeat

		set contents to tableDataList2
	end tell
end tell

end awake from nib

on clicked theObject
if name of theObject = “theTable” then
tell window “mainWin”
tell table view “theTable” of scroll view “theTableScroll”
set thisRow to clicked row of theObject
set thisCol to clicked column of theObject
set theValue to contents of data cell thisCol of clicked data row
log theValue
end tell
end tell
end if
end clicked