I have been experimenting with a short script which will compare files which differ only in their extension, where the extension may have multiple components - thus jhh.exe and jhh.exe.zzz should compare as equal. From the scripting reference, I had thought that the file_stem_m property would do it - however,it doesn't seem to. Here is a reduced function:
function MoveThem()
dim flist, fil
set flist=dopus.listers.lastactive.tabsleft(0).files
for each fil in flist
dopus.output(fil.name & " ---- " & fil.name_stem & " ---- " & fil.name_stem_m)
next
end function
The output for the two files concerned is:
Jhh.exe ---- Jhh ---- Jhh
Jhh.exe.zzz ---- Jhh.exe ---- Jhh.exe
which is fine for the first one, but I would have expected just "Jhh" (not "Jhh.exe") as the output from the name_stem_m property in the second case.
Apologies if this is a stupid mistake by me (it is my first post) or is this something that should be approached differently?
I am using dopus 12.16 (x64) if that helps.
Many thanks
John