In Dopus there is a button for copy folder path (Edit-Copy Others-Folder Path), but it only for current tab. Is it possible to have a button to copy the path of all open tabs in a lister? My goal is to make it easy to connect between Dopus and open/save as dialog using windows 10 clipboard history without a 3rd app.
function OnClick(clickData)
{
var lister = clickData.func.sourcetab.lister;
var fsu = DOpus.FSUtil;
for (var eTabs = new Enumerator(lister.tabs); !eTabs.atEnd(); eTabs.moveNext())
{
var path = fsu.Resolve(eTabs.item().path);
DOpus.SetClip(path);
}
}
It's possible the Windows clipboard history tool ignores rapid changes and only keeps the last one. I don't know how it works. You could try adding a delay between each path but that could make the thing quite slow. Maybe you're better off using one of the proper tools for this instead of trying to do it through the clipboard.
function OnClick(clickData)
{
var lister = clickData.func.sourcetab.lister;
var fsu = DOpus.FSUtil;
for (var eTabs = new Enumerator(lister.tabs); !eTabs.atEnd(); eTabs.moveNext())
{
var path = fsu.Resolve(eTabs.item().path);
DOpus.SetClip(path);
DOpus.Delay(250);
}
}
Yes, insert a new line after DOpus.SetClip(path); works as expected. Many many thanks for your help, lxp. This helps me a lot. And thanks a lot for the script too, Leo.