Hi, I think there is a new bug in DOpus 13.4.3 beta,
1, keep the selected file in a list
2, clear select status of all the files
3, do my work
4, reselect the original selected files.
the final things is all the files are selected. I've tried that the objCmd.RunCommand ("Select * DESELECT")
will select all files.
Dim objCmd
Dim selItem
Set objCmd = DOpus.CreateCommand
objCmd.SetSourceTab (DOpus.Listers.lastactive.activetab)
objCmd.ClearFiles
If DOpus.Listers.lastactive.activetab.Selected.Count > 0 Then
For Each selItem In DOpus.Listers.lastactive.activetab.Selected
If (selItem.is_dir) Then
DOpus.Output "ERROR: The selected item is a folder. <" & selItem.name & ">"
Else
objCmd.AddFile selItem
End If
Next
End If
objCmd.RunCommand ("Select * DESELECT")
' do my work
objCmd.RunCommand ("Select FROMSCRIPT")
Set objCmd = Nothing