Using `Go ... FOLDERCONTENT=move` and then `Show VIEWERCMD=next` does not work

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

I read at Viewer Mouse, Keys and Toolbar [Directory Opus Manual] that Show VIEWERCMD only works in viewer context, but to my understanding a button within the viewer toolbar is in viewer context.

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.

In the next update we'll make it so you can use embedded commands for this.

3 Likes

Fantastic, thanks @Jon. :+1:

I've just installed v13.16.5 and it works as expected to show the next image with the following code. Thanks! :slight_smile:

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.

In the next beta we'll make this available as a variable, which will be accessible in the embedded function as {$targetpath}.

1 Like

Amazing, thanks @Jon.