How to quickly determine if any cells are currently highlighted?

image
In a script,how to quickly determine if any cells are currently highlighted?
If using item.highlighted object, when there are many many items in the tab, it will take a lot of time to traverse all the items until the one which has any cell highlighted.

1 Like

AFAIK you have to loop through the items.

What kind of thing do you want to do with the highlighted columns?

1 Like

In the next version we'll add Tab.highlighted which will return a collection of all items in the tab with currently highlighted cells (or an empty collection if nothing is highlighted).

1 Like

I want to use one hotkey to do [Clipboard COPYNAMES=nopaths,noexts] , but if any cell is highlighted , this hotkey will do [Clipboard COPYCOLUMNS].