Page 1 of 1

E.g. listpane() in the scope of a scripted custom column

Posted: 14 Jul 2024 16:02
by highend
E.g.: return listpane();
shows that each column where the script is executed does only see the visible items up to its entry.

The same is true for e.g. get("countitems");

I guess this is by design?

I'd like to do the following: Use a scripted cc and...

Code: Select all

- Test if it's the first column
If yes fill a perm var with the content of a cli tool that is able to generate metadata for a full list of files (in this case: for all [C]listpane()[/C] files/folders...)
- Test if it's a column > first column & < last column
If yes, wait until the perm var is non empty and return its belonging data line from it afterwards
- Test if it's the last column
If yes, return its belonging data line and reset the perm var to empty
This would yield a huge performance boost because the data would only be generated once and the cli tools don't need to be called <x> times for all items...

Re: E.g. listpane() in the scope of a scripted custom column

Posted: 16 Jul 2024 11:18
by admin
Yep, by design.

I'm aware that Custom Column scripts are quite inefficient and that some form of initialization code section would help a lot. Needs more thinking...

Re: E.g. listpane() in the scope of a scripted custom column

Posted: 16 Jul 2024 11:40
by highend
I hope you'll find the time for it at some point :whistle:
Apart from tagging (not everyone wants to do this / knows how) there isn't any other working way to speed up the external usage of cli tools in cc columns...