Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Feb 16, 2018 7:23 AM

Reply
Question marked as Best reply

Posted on Feb 16, 2018 11:13 AM

tell application "Numbers" to tell table 1 of sheet 1 of front document

set myRowNumber to first row'saddress of selection range

end tell


1 reply

AppleScript: Get row number of Numbers selection

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.