This week I started experimenting with XYplorer Scripting after using XYplorer for about 20 days, enjoying every minute.
Today I'm having difficulties with the following short script:
Code: Select all
End ("<curitem>"==""), "No file(s) selected!"
load report('moveto "E:\Some path\" .
substr("{Basename}", 0, 1), :list; ', 1),,s;Code: Select all
E01.jpg -> Some path\E\
F01.jpg -> Some path\F\
G01.jpg -> Some path\G\
H01.jpg -> Some path\H
I01.jpg -> Some path\IThe problem is that the script moves all files to the first folder (E) at first move. Resulting in four error messages "Cannot move, cannot read source" because everything is already moved.
When running the script in step mode I can see all paths correctly. But result are a bit more weird as above. Let's assume here that I select E01,jpg, F01.jpg and G01.jpg. Now at first move again the selected files are moved to folder E AND afterwards H01.jpg is moved to folder F and I01.jpg is moved to folder G.
So am I thinking wrong to use moveto inside report() and is there a way to overcome this problem?
Greetings,
Winkie
P.S. @admin: I started this post before realizing Step Mode was doing weird. If this post belongs in Bug Reports, please move. (As far as I know latest Beta 9.30.0023 has the same issues)
XYplorer Beta Club