How can i read out the currently selected file with an external program

Hi, is it possible to read out the currently selected file with an external program or maybe a script that updates a text file with the currently selected file? basically i want to know in real time what file i have currently selected.

dopusrt.exe can generate a list of selected files via the /info listsel command described under Retrieving File and Folder Information.

There isn't a way to make this event-based. We've avoided adding that so far, as running scripts or external commands every time the selection changes could slow things down considerably. (Consider something common like holding down the arrow key: Each file/folder you pass would have to trigger the event.) Perhaps there's a case for an event that triggers when the selection changes, after it has "settled down", but we don't have that currently at least.

Or only trigger the event when no keys are held... I'm sure there's many ways to make this feasable, and would certainly be useful.

Tapping the arrow keys, or drag-selection with the mouse, would have the same problem.

If people suggest some compelling use-cases for some kind of delayed selection event, we'll certainly consider it. If we understand how it would be used we can make sure what we do will work, if it's feasible to make it work.