Copy clipboard content into selected foldersPasteToFolders#folder@script jscriptvar version = "0.1";var DebugOutput = true;///////////////////////////////////////////////////////////////////////////////function OnClick(data){ Debug("PasteToFolders():"); if (data.func.sourcetab.selected_dirs.count==0){ Debug("E No folders selected"); return; } Debug(" Selected folders: " + data.func.sourcetab.selected_dirs.count); var clipData = DOpus.GetClip("files"); if (clipData.count==0){ Debug("E No items in clipboard"); return; } Debug(" Items in clipboard: " + clipData.count); var cmd = DOpus.Create.Command(); cmd.AddFiles(clipData); var foldersEnum = new Enumerator(data.func.sourcetab.selected_dirs); for (;!foldersEnum.atEnd(); foldersEnum.moveNext()){ var folderItem = foldersEnum.item(); Debug(" Copying into ["+folderItem.realpath+"]"); cmd.RunCommand('COPY TO="'+folderItem.realpath+'"'); }}///////////////////////////////////////////////////////////////////////////////function Debug(text) { if (DebugOutput) DOpus.Output(text);}