This add-in will open a paired folder in the destination if it detects a valid folder while navigating a lister.
The implementation is rather basic, there are more options available. See the docs for details.
How to set up and use
Save EventAutoOpenPairedFolder.js.txt to ↓
%appdata%\GPSoftware\Directory Opus\Script AddIns
Things you might enjoy reading
Docs: FSUtil GetFolderPair
Docs: PairedFolder
Forum: Regex-based Paired Folders - Tutorials
FAQ: How to use buttons and scripts from this forum
The script's inner workings
function OnInit(initData) {
initData.name = 'AutoOpenPairedFolder';
initData.version = '2024-06-28';
initData.url = 'https://resource.dopus.com/t/autoopenpairedfolder-add-in/46353';
initData.desc = 'Open paired folder in destination';
initData.default_enable = true;
initData.min_version = '13.0';
}
function OnAfterFolderChange(afterFolderChangeData) {
if (!afterFolderChangeData.result) return;
var tab = afterFolderChangeData.tab;
if (!tab) return;
var fsu = DOpus.FSUtil();
var pairedFolder = fsu.GetFolderPair(tab.path);
if (!pairedFolder.valid) return;
var cmd = DOpus.Create().Command();
cmd.SetSourceTab(tab);
cmd.RunCommand('Go' +
' PATH="' + pairedFolder.path + '"' +
' NEWTAB=findexisting' +
' OPENINDUAL' +
' NOSCRIPT');
}