Create text file & put it in clipboard

I tried to find this in the documentation, but mostly the examples are poor & i can´t figure things out. So, here´s the problem:
some user wants to have a text file created, named folder.txt & have it put into the clipboard.

I tried

Filetype NEW=.txt NEWNAME=folder.txt
CLIPBOARD COPY

but instead of actually creating the new file, the command will remain in edit mode, so this is quite useless, since a manual Enter
is required. Isn´t that command supposed to complete the action without having to push the enter key? Also, i have no idea, how
to select this file & put it into the clipboard.

What are they actually trying to do? Maybe there's a better way all round.

I don´t know, maybe it´s for documentation of the folders. If it´s an empty text file, he could use some template file, which he´d copy from someplace?! How would the file be copied to the clipboard? Sorry for asking, but the help system has changed & since then it´s a bit of a hassle to find things.

That's what's confusing me... I can't think why someone might want an empty text file put in the clipboard, unless they wanted to paste that empty file somewhere else (but if they want to do that they could create the new file where it's needed instead).

Maybe they want to paste the text in the clipboard into a new file? Or create a new file and then open it in an editor so they can fill it in?

Any of these things should be possible (including the original question, though it might take some fiddling to find the right thing) but it'd be good to know what they're really trying to do & why to give the most useful solution.

@abr:

Getting the empty Textfile into the clipboard is easy done.
Just add "Select folder.txt" before the "CLIPBOARD COPY" command.

The new File will be in edit mode but you should'nt edit the name or the Select command will not work.

To prevent Opus entering inline rename, change the command to Filetype NEW=.txt NEWNAME=norename:folder.txt

Leo, kundal & Jon, tank you. The problem is almost solved. Leo, you were right, he wants to copy some selected text into that folder.txt file. So the only problem now is to get the contents of his clipboard into the txt file. I think, this can be done via DOS somehow, if there is no other way of "injecting" the text into the file.

That is as simple as this:

Clipboard PASTE AS folder.txt

[quote="leo"]
That is as simple as this:

Clipboard PASTE AS folder.txt

This is indeed simple, unbelievable :open_mouth: . Sorry i couldn´t figure this one out by myself. Thanks @all!