I'm experimenting with Go ... FOLDERCONTENT - it's a great feature!
I added a button to the (linked) viewer toolbar to move the shown image to another folder using Go X:/ FOLDERCONTENT=move,nofiles,showempty. The file is moved as expected, but the lister still shows the moved image, so I added Show VIEWERCMD=next to the button in two variants, but neither works.
// Submenu → "button": this shows the code of "button"
Go X:/ FOLDERCONTENT=move,nofiles,showempty
[Show VIEWERCMD=next] // variant 1
Show VIEWERCMD=next // variant 2
Btw, a similar issue is that I'd also like to combine the move with image conversion, i.e., after Go X:/ FOLDERCONTENT=move,nofiles,showempty run Image CONVERT HERE, but couldn't get it working. (See Use `Go FOLDERCONTENT=move` in combination with `NEWTAB`)
You can include an unlimited number of commands in a button. However, once you use Go FOLDERCONTENT or any other command that generates a dynamic button, this number reduces to one. Where supported, you can use an embedded command to manage the result of the original command. The more unconventional your goal, the more likely you'll need to rely on a script.
I've just installed v13.16.5 and it works as expected to show the next image with the following code. Thanks!
Go X:/ FOLDERCONTENT=move,nofiles,showempty
[Show VIEWERCMD=next]
Is there a way to access the path of the moved file in the target folder in the embedded function block?
I've tried the following but all paths are either empty or point to the path of the file before the move operation:
Go X:/ FOLDERCONTENT=move,nofiles,showempty
[
dopusrt /argsmsgbox Test {filepath} {sourcepath} {destpath} {leftpath} {rightpath} {filepathdest}
Show VIEWERCMD=next
]
My goal is to convert the image (resize) after the move operation.