get selected column

I have a two column table…on keyboard up I am trying to determine which column the user is typing in. Here is my code:

on keyboard up theObject event theEvent
if name of theObject = “fileData” then

tell window “mainWin”

set thisRow to selected row of theObject
set thisCol to selected column of theObject
log thisCol

–>rest of code

I can get the correct row returned but the column returns as 0. Any help would be appreciated.

Moved to AppleScript Studio & Xcode

Doh, thanks, thought that was were I was…stupid Fridays…:smiley: