Not "*.txt", but "<xypaper>\*.txt".
The above mentioned entry in XYplorer's Help file
"XYplorer native variables and environment variables are supported in the pattern list. E.g., the following pattern will only match TXT files in the Paper Folder folder:
<xypaper>\*.txt>::echo <focitem>;"
communicates "<xypaper>\*.txt" with a script command "echo ...;".
So I thought, this will work for loaded paperfolders,
did not take "the following pattern will only match TXT files in the Paper Folder folder" in attention.
XYplorer Beta Club