How do you set the selection for a table in Numbers using py-appscript?
This seems like it should be really simple to do but the solution is frustratingly evasive. I can get the current selection:
current_table.selection_range
and I can get its cells:
current_table.selection_range.cells()
but trying to set() either of them gets an angry appscript error.
Looks like something like this works:
Note, looking at
Number'sscript dictionary inAppleScript Editoror withASDictionary, the propertyselection_rangeis defined as classrange. So that's a clue that you need to come up with a reference of typerangeto set it.