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
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.