Variable resolving broken/unreliable in sc copyas?
Posted: 13 Sep 2013 22:40
I have 4 files in the active pane:
Test.r00
Test.rar
Test.part1.rar
Test.part2.rar
and this little script:
Whenever I select only one file, the destination file will have the date variable as expected.
But if I e.g. select the first two, use the script (destination files are correct) and then select file 3+4 and run the script again, the destination files will be unmodified. If you don't get this behavior in the first place, select e.g. all 4 files, only 1, three (all with executing the script afterwards)...
If sc step; is used before the loop you'll see that the <datem ...> variable isn't always resolved.
Tried with the latest beta and /fresh switch...
Test.r00
Test.rar
Test.part1.rar
Test.part2.rar
and this little script:
Code: Select all
$files = get("selectedItemsPathNames", "|");
foreach ($file, $files, "|") {
copyas "* <datem yyyy_mmdd>.?", get("Path", "i"), $file;
}But if I e.g. select the first two, use the script (destination files are correct) and then select file 3+4 and run the script again, the destination files will be unmodified. If you don't get this behavior in the first place, select e.g. all 4 files, only 1, three (all with executing the script afterwards)...
If sc step; is used before the loop you'll see that the <datem ...> variable isn't always resolved.
Tried with the latest beta and /fresh switch...