View folder.jpg in viewer pane picture when selecting folder

I use folder.jpg thumbnails in may folders with media (movies, mp3...)
When I view a folder list as tiles, the folder view this folder.jpg.
It would be really nice if the viewer pane would display the folder.jpg when i select a folder.
Is there a way to achive this. I thought to use an event that's fired when a folder is selected
but don't know where to start.

Thanks for suggestions

Stefan

You can use Show VIEWPANECMD for this, but I don't think there is an event to automate the procedure.

Nonetheless, a useful idea. Could be an option in Preferences / Viewer / Viewer Pane what to show when a folder gets selected.

It looks like this command only opens the Viewpane which in my case is already open and If a folder is selected, the viewpane shows nothing.
I need a way to run a script when a folder is selected.
The script should look inside the folder if a folder.jpg files exists and if yes show it in the viewer pane.
I found in filetypes You can register events and there is a filetype "All folders".
But the button to create a new event for this type is greyed out.
Is this normal?

Regards

Stefan

The command Lxp mentioned also lets you open a specific file in the viewer pane.

But there is no scrirpting event that fires when the selection changes. (Adding one could slow down the file display a great deal.)

A button could look like this:

@nodeselect 
Show VIEWPANECMD="open,{filepath}folder.jpg"

For details check

https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Show.htm

That did it. Thank You!