I see... I think I got it. Here's a little skript for you to try out. Uses /mydocuments
as destination.
function OnClick(clickData) {
var cmd = clickData.func.command;
var tab = clickData.func.sourcetab;
var fsu = DOpus.FSUtil();
cmd.deselect = false;
DOpus.ClearOutput();
for (var e = new Enumerator(tab.selected_files); !e.atEnd(); e.moveNext()) {
var item = e.item();
if (!item.InGroup('Archives')) continue;
var folderEnum = fsu.ReadDir(item);
while (!folderEnum.complete) {
var folderItem = folderEnum.Next();
var cmdLine = ('Copy FILE="' + folderItem + '" AS="' + item.name_stem + folderItem.ext + '" TO=/mydocuments');
DOpus.Output(cmdLine);
cmd.RunCommand(cmdLine);
}
}
}
35559.dcf (1.5 KB)