Q: Hiding or unhiding table rows with AppleScript?
I have a large table in Numbers, and I want to sometimes view the entire table, and sometimes select a group of rows to hide or unhide, to make viewing the data more convenient.
Selecting the numerous rows to hide is tedious (there are many, and they are not contiguous). So I would like to use AppleScript to do this. But in the Numbers AppleScript dictionary, I don't see any way to apply a 'hidden' attribute to either rows, columns, or ranges. Is there some trick I'm missing? Or does this just not exist in the current implementation?
Thanks
Mac OS X (10.7.5)
Posted on Mar 18, 2016 1:29 PM
As far as I know you can't hide a row or set the height to 0 using AppleScript, though I suggested that a while back via Numbers > Provide Numbers Feedback in the menu.
What you could do is filter the table to hide the rows, probably by adding a filter column designating which rows you want to see (or, conversely, hide). That filter can be turned on and off via AppleScript using the table's filtered property, though it would probably be easier to do it via the built-in interface.
SG
Posted on Mar 21, 2016 2:51 PM
