There have been many topics in the past involving multiple commands.
Various 'tricks' have been used when the multiple DOpus commands fail because a command begins before the previous command has completed.
These 'tricks' range from Prefixing certain lines with either Dopusrt /cmd or Sync:Dopusrt /cmd, to using Dos commands to accomplish certain commands in Batch File Mode, to writing command line programs, to discovering what Dopus commands one can 'safely' append another line to, to User Functions.
I'm not certain Jon implied that the Image CONVERT could be run on the same button,
but Jon's suggestion actually works with reasonable size images for a resultant folder.jpg.
I have the curse ( advantage ) of an old computer for at least a few more months.
I am building a new one , Really !
I attempted to use 28.1 MB, 5 MegaPixel Tif Images to accomplish this.
I used Jon's code with more success, and this modified version with less success.
Copy To {destpath} AS folder.jpg
Go {destpath}
Select folder.jpg
Image CONVERT
With reasonable size images for a resultant folder.jpg this works.
However, with 28.1 MB Tifs, the Convert dialog either doesn't display at all, or I just see a flash before it closes.
Apparently folder.jpg didn't properly exist yet ( my guess ).
However, in the end, folder.jpg is properly selected.
If I prefix the Image Convert line with sync:DOpusrt /cmd, the Select folder.jpg then fails.
This is one reason why I've favored writing my own amateur command line programs , or 4NT scripts for my more complex button tasks.
Porcupine
edit note: The previous three posts were made as I was writing this, and I hadn't read them yet.