AppleScript to reveal a Numbers table which is off screen
I have an AppleScript which manages a large Numbers document. A sheet in this document will have multiple tables, and sometimes I need to manually interact with one of them. The script includes a display dialog which lists the instructions to carry out the interaction.
My problem is that the display dialog appears to prevent manual scrolling sometimes needed to reveal the table requiring attention. How can I arrange for the table to be displayed before invoking the display dialog?
I've tried simply setting a cell value in the off-screen table
tell table oldTable to set value of cell 3 to "OXO"
which sets the value but doesn't scroll the sheet to reveal the table.
I’ve tried to interact with the sheet tab’s table menu with
activate "Numbers"
tell application "System Events"
perform action "AXShowMenu" of radio button “mySheet” of tab group 1 of scroll area 1 of window 1 of process "Numbers"
end tell
which brings up a menu of items including all the table names. However I can’t see how to make AppleScript interact with those menu items. Can anyone help me out please?
(Current workaround is to manually move the display dialog away from the Numbers sheet.)
MacBook Pro 16″, macOS 15.5