Double click to open a different file

Hi guys,

I have a folder full of LBX files and associated JPG files. See example image below.


When I double click on the LBX files they open in Brother P-touch Printer Software as expected.

What I would like is to it to double click on the JPG files and instead of the JPG opening, I would like the associated LBX file to open in P-touch Editor.

Furthermore, I only want this to happen in one particular folder.

The reason for this is so I can hide the LBX files and only show the JPG files in thumbnail view to reduce the number of files in the lister.

Is this possible?

Regards

Blueroly

(Just to clarify, that's not Leo's real address so don't be sending him goodies there) :slight_smile:

You’d need to use scripting. (Edit: Or maybe not. See Lxp's ideas below.)

This script is an example of how to conditionally change what double click does in specific folders:

If you are willing to use a button or hotkey, the solution can be as simple as:

{filepath|ext=lbx}

Changing the Left double-click action for .jpg files via the File Types editor is not that difficult, either:

@ifpath:D:\special\path\to\lbx-files
{filepath|ext=lbx} 
@ifpath:else
{filepath}
2 Likes