Page 1 of 1
I believe I found a bug with the "COPYAS" script function
Posted: 24 Feb 2011 05:31
by Meester
I'm using the syntax as follows:
copyas '* - Backup <datem yyyy-mm-dd>.?';
When I select several files then run this script. It will take the modified date from one of the files and apply it to all. So if all the files have different modified dates then only one file will have the correct modified date and all the others will be wrong.

Re: I believe I found a bug with the "COPYAS" script function
Posted: 24 Feb 2011 07:16
by admin
The usage of "<datem" variables in a way that they are resolved individually for each selected item has not been advertised in the documentation as far as I see. So this is rather a feature wish. And it makes total sense. The next version will siupport it. (Note that you will have to pass the argument in single quotes in that next version to make it work as expected -- otherwise the date variable is resolved before the argument is passed to CopyAs.)
Re: I believe I found a bug with the "COPYAS" script function
Posted: 24 Feb 2011 08:13
by DmFedorov
Confirmed.
But I've always used Backup Here first and only then special Batch rename. I have never used this feature before.
Re: I believe I found a bug with the "COPYAS" script function
Posted: 24 Feb 2011 09:12
by DmFedorov
Edit: I do not know why, but I did not see the answer Admin, when I wrote. It just was not there.
AdminI believe I found a bug with the "COPYAS" script
And I believe I found other bug with the "COPYAS" script
Try:
Select the directory in the tree. Then menu Scripting/Run script. Then paste function in window and OK.
In the beginning it will be written that a new directory ". - Backup" doesn't exist and script create this folder, and then there will be a window that the Location is unavailable, and I'll get a folder with no content
If after that you fulfill this script once again, script will create new directorie through a numerical suffix (- Backup -01) without problems,
but date neither in files nor in folders won't be specified.
I have started to do such reservation because at the first attempt to use this script to me have been written
"The focus needs to be on Tree or List for this function."
And I have tried to make focus on a tree.