I am trying to set up a button that duplicates a file and then selects the destination file:
Copy DUPLICATE WHENEXISTS=rename AS "{file|noext} copy{file|ext}"
Select "{file|noext} copy{file|ext}"
however, even though the destination file gets selected here, it seems that the first file still has focus (since if I hit F2 to rename afterward, it renames the original file)
Could someone please tell me what I'm doing wrong?
F2 inline rename works on the file with the keyboard focus and ignores the selection.
What are you actually aiming to do? If you want to be prompted for the new filename, using what you have above as the default, then there's a much better way to do that.
I think there's a more general feature-request to automatically select newly created files; if that gets implemented it'd probably solve your problem.
For now, what are you actually trying to do? Why do you want the duplicated file to be selected? For example, if you're going to immediately move it somewhere else then you could do the move-and-rename as a single step and avoid the problem entirely.