Regarding the OP, the script you quoted was as supplied in your original request here:
https://www.xyplorer.com/xyfc/viewtopic ... 96#p236796
and the orig request was for you to select a single folder and ±R the
recursive file contents, meanwhile in this thread you have changed the request to select a group of files instead, which as I originally mentioned would require a script modification, so no wonder it didn't perform as expected. Anyway if you use a script such as this:
attrstamp("r", 3, quicksearch("/fl", <get sip>));
it should work in both cases, ie. a selection of files, or a selection of folders to which the recursive file contents are ±R'd (or even if a combo of both files + folder(s) is selected)
I RECOMMEND TO BE CAREFUL IF USING THIS THOUGH, ie YOU WOULDN'T WANT TO ACCIDENTALLY PRESS IT WITH THE WRONG FOLDER(S) SELECTED,
BUT YOU COULD ADD A CONFIRMATION DIALOG IF ACCIDENTAL PRESS IS A POSSIBILITY, eg,
Code: Select all
if (confirm("Really toggle R attr on selected items?", 3:=4)) { attrstamp("r", 3, quicksearch("/fl", <get sip>)); }