Page 1 of 2

"Copy with increment" not working correctly

Posted: 29 Jan 2013 11:09
by rhoelzl
If I create a folder called "test1" and then repeatedly use "copy with increment" this is what I get:

test1
test1.001
test1.001.001
test1.001.001.001
etc.

Ditto for a folder called "1. Test" I get

1. Test
1.001. Test
1.001.001. Test
etc.

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:15
by admin
Works fine here.

Configuration | Templates | Incremental affix: -01

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:36
by rhoelzl
I have tried setting that setting to -01 as you recommend, but then I get

Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt
Neue Textdatei-01-01-01.txt
etc.

The counter does not increment, it just adds the suffix every time.

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:51
by admin
Of course you always have to have Neue Textdatei.txt selected. You can copy "Neue Textdatei-01.txt" and expect to get "Neue Textdatei-02.txt".

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:55
by rhoelzl
Ah, I see. Thanks for the explanation.

That is not what one would expect from the name "copy with increment", but okay, why not.

Thanks.

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:59
by Borut
I believe I can confirm the problem too.

Interesting... After trying to always copy the newest one...

Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt

...try now to copy the middle one (here the red one) - I am then getting:

Neue Textdatei-01-02.txt

This is the only time when an incrementing actually takes place (although even here obviously after an unexpected try to append another suffix).

@Don
Ahaaa, you are right Don. This is indeed also the logic of the MS WE.

But, I must say, the usage logic of rhoelzl is appealing too. I would also be one of those to welcome an additional intelligent check: If the name pattern of the selected file already coincides with the suffix pattern, then do not append another suffix, but make a new name by only incrementing what is already there.

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 20:59
by admin
Well, it's what I expect. And I have never seen something different. To correctly recognize a part of a filename as increment takes intelligence, world knowledge, and luck. Too much for a machine.

Re: "Copy with increment" not working correctly

Posted: 03 Feb 2013 21:21
by PeterH
I'd also expect it to work as it does!

After I copy "test1" I'd expect "test1.001" to be created. OK.

Now after I copy "test1" again it should be "test1.002", OK too, but:
if instead I copy test1.001 it should *not* be the same, but "test1.001.001" (the douplicate is of "test1.001")

So from my POV everything works fine.

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 13:46
by rhoelzl
OK, I guess there are two possible philosophies here. With the way it is implemented right now it is not clear to me in how many situations it will be useful. I don't think I will ever use it like this. But maybe different people see it differently.

But I guess even if it were implemented the way I would except it, it is a feature I would not use that often, so I can certainly do things manually in those cases. Why not.

(BTW, I don't quite see in which sense it would be complicated to implement it the other way. Just find the last sequence of digits in the filename, increase it by one while maintaining possible leading zeros. If no numbers appear in the filename, use the suffix as it does at the moment. But again, not high priority for me.)

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 14:01
by Borut
rhoelzl wrote:(BTW, I don't quite see in which sense it would be complicated to implement it the other way. Just find the last sequence of digits in the filename, increase it by one while maintaining possible leading zeros. If no numbers appear in the filename, use the suffix as it does at the moment. But again, not high priority for me.)
Although I would like to have another logic as much as you do, it is a fact that it is much much more complicated than that (and that is why it is possibly not worth doing it). Reason: the definition of affixes is very broad...
-01
(b)
_000
Copy of *-01
kasdjakjsd * - 005 - klsdjcfdskj
...

So, easy it is not.

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 14:04
by rhoelzl
No, as I said, just use the last sequence of numbers in the filename.

"(b)" would not work of course, but I think we can live without that.

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 14:16
by Borut
I think that this would be an oversimplification and knowing Don, well...

A real world example: This is a filename of a kind I have all over the place:

ABC_20130205.xxx

If my affix pattern is -01, then I expect to get: ABC_20130205-01.xxx, ABC_20130205-02.xxx (also when copying ABC_20130205-01.xxx, like you do), ABC_20130205-03.xxx,

but not ABC_20130206.xxx after a first copy. So, the logic should take into account the currently used pattern too, I am afraid. Otherwise it would suit you, and probably me too in some situations, but in some it would be deadly.

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 14:25
by rhoelzl
Again, I would ONLY use the suffix pattern if no previous number is there. So:

ABC_20130205.xxx
ABC_20130206.xxx
ABC_20130207.xxx
ABC_20130208.xxx
etc.

but on the other hand

text.txt
text-01.txt
text-02.txt
text-03.txt
etc.

(assuming that the suffix pattern is defined as "-01").

Leading zeros would have to be respected so

text0001.txt
text0002.txt
text0003.txt
etc.

Re: "Copy with increment" not working correctly

Posted: 05 Feb 2013 14:27
by rhoelzl
Maybe there should be two commands: "Copy with suffix" and "Copy with increment".

If someone wants the behaviour you describe above, they could FIRST copy with "copy with suffix" to get the "-01" attached to the filename, and then apply several times "copy with increment" to get -02, -03 and so on.

If it would be done like this at least both commands would do what their names suggest.

Re: "Copy with increment" not working correctly

Posted: 24 May 2016 11:32
by LittleBiG
I was sure somebody already had problem this way of working. Unfortunatelly I come accross with this daily, because I usually have to copy my earlier version as a new one with a new increment and continue my work in it. So if I have a folder or file suffixed by a date, Copy Here With Current Date should change the date instead of adding the date to the end simply (dumbly).
admin wrote:Well, it's what I expect. And I have never seen something different. To correctly recognize a part of a filename as increment takes intelligence, world knowledge, and luck. Too much for a machine.
I am not sure about this. You can come up with strict rules when you can do it, the most basic cases, when recognizing the data or increment is clear. And in any other cases (special ones) you use the current working, adding increment to the unrecognizable increment.

EDIT: I know it is not a bug. It is a wish. But I didn't want to open a new topic.