Scripting - get selected files in the Windows "Recent" dir


The text and background colors for this dir are black on white (not the colors I have configured Opus to display normally) -- I assume that has something to do with it.
Why doesn't this work in that dir?

function OnClick(clickData) {
	for (var eSel = new Enumerator(clickData.func.sourcetab.selected); !eSel.atEnd(); eSel.moveNext())

Both are because the folder is being handled by the Windows Shell.

To have Opus handle it itself, select Preferences / Folders / Virtual Folders / Treat all virtual folders as real.

(Or select the option below that and add the Recent folder to the list.)

1 Like

I tried that first.
Turns out that if you change that setting to "treat as real" while you're in that dir you can't just refresh the lister for it to take effect -- you need to open a new tab or restart Opus.

All good now.