Script access to non displayed items

Currently, Tab properties only provide information about visible files and folders. I can use FSUtil.ReadDir to enumerate all of the folder contents and by matching against Tab.All I can establish which items are currently not visible but I can't see a way of determining which non-displayed items are selected. It would be good if TAB could be extended to add properties for non-displayed. e.g.

Tab.All.Hidden
Tab.Selected.Hidden
Tab.Files.Hidden
Tab.Selected_Files.Hidden
etc.

We'll add this in the next update.

1 Like

Thanks for adding Tab.hidden, hidden_files and hidden_dirs properties. When I access a hidden file or folder as an item object its .selected property is always reported as false. I appreciate that since it is hidden, for most purposes its selection status is irrelevant but my use case is to perform actions (using FROMSCRIPT) against all selected items, visible and hidden.

Aha! I see that it depends on how the items were hidden. If they were hidden by means of FILTERFLAGS=hide, their selected status is preserved but not if they were hidden by HIDESEL.

The inevitable follow on request is for a way to hide, but not deselect, items that are selected without using a filter. Something along the lines of:

Select NOPATTERN HIDESEL NODESELECT