What's the real thing you're aiming to do? There's usually a better way than changing folder and selecting files in the lister, although it depends what the goal is.
I would probably turn that into a script... but keeping things simple for now, what's going wrong with that set of commands?
If nothing comes after the Rename commands then it shouldn't matter if they stop things at the end when there are no files, as there's nothing for the rest of the command -- i.e. the Rename commands -- to do. (For that matter, there's nothing for the overall set of commands to do if there are no files to work on.)
Yes, there are a few more non-rename commands following, like setting metadata and opening a new lister and the viewer. Most of the time it will work because there are files on the camera, but testing new code after the Rename commands would be easier, if the execution didn't stop (on a sidenote: a block comment/uncomment in the editor would be nice, too)
Opus' behavior seems a bit odd to me: wouldn't it make more sense to just continue with the execution? Or am I missing the bigger picture?
This probably fits very often, but you could have script commands select things again e.g, and then the button would still not run in full. This is because DO and some commands have there own abortion logic implemented it seems.
+1, removing some of this built-in magic is something which was also suggested in the mentioned thread, since all this can become irritating at times. Not completely sure if this should be done though. Things worked liked this for years, there's a risk existing buttons and command sets could fail or act very unexpected unless you introduce some kind @modifier to toggle behaviour to "expected"-mode - so to say. o)