Possible to open files in a specific app based on folder?

Hi Everyone,
Is it possible to set a specific app to be used when trying to open files in selected folders?

For example, as I mostly want PDF's in Chrome to open in the browser, I've set Chrome as my default viewer for PDF's in Windows 11.

However, for a specific folder on my machine, I'd like the pdf files to open in Bluebeam Revu as they require editing with this app.

Is there anyway to do this?
Many thanks
Adam

Settings > File Types, edit the PDF type and change the double-click action to something like:

@ifpath:C:\Special\Folder
"C:\Special Program\Abc.exe" {filepath$}
@ifpath:else
"C:\Normal Program\Xyz.exe" {filepath$}

You can also use @ifpathr for regular expressions if needed (e.g. to include subfolders). Details in Command modifier reference [Directory Opus Manual]

1 Like

Perfect! Thank you very much!