"Rename inline" for selected file?

I´m trying to copy one rtf template file to the current folder & to rename it right after that. It would be perfect, if an "Enter" after the rename would open that document.

COPY L:\weggg\RTFVorlage.rtf TO HERE
select pattern RTFVorlage.rtf
RENAME Inline=name

The problem is, although the right file is selected, the inline rename seems always to work on the first file in the folder. How can i force the focus on the copied file, which is to be renamed? Or maybe there is even a more elegant way? :confused:

Why not just use Copy AS and rename it as you copy it?

The problem is, how can i use "Copy As" & "TO Here" in the same code?

Copy L:\weggg\RTFVorlage.rtf HERE AS

Yeah, that works, thanks Jon.

Is there a way to "track" the new file, so it would be selected & therefore ready to be accessed? I tried @nodeselect, but i think this fails, because the original file (which is somewhere else at most times) actually has to be selected to make @nodeselect work.