Unattended and @confirm

Hello :slight_smile:

I made a button which move files to an alias :

copy MOVE TO /DestPath1

I want a dialog box to confirm where they will be moved, with the full path in the message.
I first tried :

copy MOVE TO /DestPath1 UNATTENDED=no

But nothing happened, why oh why ? :slight_smile:

So i want to try something like :

copy MOVE TO /DestPath1 @confirm:Do you really want to move files to /DestPath1 ?|Yes|No

But how to replace /DestPath1 with the full path (would be better with just the last folder of the path displayed) ?
And how to make the "No" button, the default button ?
And finally, why the UNATTENDED=no didn't work ?

A lot of instructive question, thanks for any help :slight_smile:

I'm not sure why you'd expect UNATTEND=no to show a confirmation dialog; I think there is some confusion over what unattended mode does. Unattended mode is off by default anyway, so UNATTEND=no doesn't really do anything.

@confirm is what you want, but it needs to be on a line of its own, not put on the end of the line for the copy command.

You may also need to use {alias|destpath1} to get the path that the alias points to into the confirmation message.

Well.. for the UNATTENDED, it is surelly because of a bad traduction, i read in the documentation, about UNATTENDED=yes :
"Enables unattended copy mode. In this mode, Opus will not display any confirmation prompts or error dialogs"
So i thought that my prompt would magically appear with UNATTENDED=no :slight_smile:

Anyway..
I tried :

@confirm:Dรฉplacer les fichiers vers {alias|DestPath1} ?|Oui|Non copy MOVE TO /DestPath1
It makes a 3 buttons dialog box, because there is 3 "|" in the code...

Can you help me ?

Sorry, looks like you can't use things like {alias|DestPath1} with @confirm. I'm not sure there is a way to do this.