{filem} Generating multiple files instead of just one

Greetings Gurus. The {filem} code is very useful.
Why does it copy multiple files when multiple files are selected?
Ideally the command should be executed once and not multiple times.
The command below runs multiple times.

@runonce
copy {F!|filem} as dynamic.list to {dest}

filem is not intended for use with internal commands like Copy, since those know how to enumerate through the list of selected files themselves.

But you can can make it work by running it as if it was an external command:

dopusrt /acmd Copy {allfilepath|filem} AS dynamic.list
1 Like

Thanks Leo, great response, I'm curious, why does this work?