Get focused item's index without iterating over the collection of items

@eugenesv good. In a quick test, I have so far discovered that the order in which items are listed in tab.all gets messed up when expandable folders come into the equation. You can see that the same problem affects SelectNext script. So the only options you have that I can think of are:

  • Skip all nested items (if any). Then you would have to go through the entire collection to get the index of the file in question. From there, add items to the command as needed. But the command would skip any items inside an expanded folder, which can be confusing.
  • Use Select NEXT/PREV, with all the limitations you and lxp mentioned.
  • Ask the developers for an option for Select RANGE (or a new argument) so that it can take values like +5,-5 to select 5 positions next or previous to the currently focused item.
1 Like