tiago wrote:
I should also point that """selfilter""" has completely different effect than "selfilter", and if (which I don't believe, because my version of your script works 100% of the times, it's not a theoretical solution, it's a WORKING SOLUTION) this is not working for you, I'd like to suggest you to try selecitems, which in its turn perform awesomely under specific situations, as I'm learning.
What I did was to take the two lines in question from your version:
Code: Select all
selfilter """$token""";
#1048;
...and add it to the top of my foreach loop. When I do that and run the script, I get an error "Nothing selected in the file list", when it gets to the rename operation.
However, using "selectitems" does seem to fix the problem, so thank you for that.
tiago wrote:
In the other hand: why are you using foreach, if you're processing the same batch of files all at once?
I'm not. Why do you think I am?
XYplorer Beta Club