AppleScript: Get row number of Numbers selection
I'm trying to use AppleScript to get the row number of a selection in Numbers. I have code that works, but I'd like to see if there is a better way to do it. Here's the code I'm using:
tell application "Numbers" to tell table 1 of sheet 1 of document 1
set myRowNumber to address of row of first cell of selection range
end tell
Is there a better way to get the row number? Thanks for your suggestions.
iMac, 27" Late 2013