Page 1 of 1

beating a dead horse? - renaming on collision

Posted: 23 Jan 2011 02:27
by Joso
I see that we can now automatically index the file name in the event of collision in both inline renaming and backup operation. How come we can't do it with move/copy functions?

Here's the scenario: all day long I produce files called "1234567m" or "1234567L" in a dir called "today". Later (much later usually) - I sort out the junk and move the files I need to keep into directories that match the "1234567" part of the file name. It's a simple as |567 and then move em. - The "1234567" dir may already contain files named "1234567m thru m6" - which I don't want to overwrite, so I have to stop and figure out what number to assign to the new "1234567m" file. (Maybe I need to write a script to do this)

Re: beating a dead horse? - renaming on collision

Posted: 25 Jan 2011 11:44
by admin
Because move/copy are still handled by the shell. Wait for XYcopy 2.0... :)

Re: beating a dead horse? - renaming on collision

Posted: 25 Jan 2011 22:51
by Sander Bouwhuis
So, you mean that there will be a setting that will automatically copy and rename files like this:

Before:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)

Then copy the 'My file.txt' from 'Dir 1' to 'Dir 2'.

After:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)
Dir 2\My file (2).txt (1000 bytes)

I.e., there will be no more annoying popup where you first have to set the 'Do this for all files' checkbox and then choose 'Copy and replace files''?

That would be wonderful!!!

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 10:48
by admin
iycgtptyarvg wrote:So, you mean that there will be a setting that will automatically copy and rename files like this:

Before:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)

Then copy the 'My file.txt' from 'Dir 1' to 'Dir 2'.

After:
Dir 1\My file.txt (1000 bytes)
Dir 2\My file.txt (2000 bytes)
Dir 2\My file (2).txt (1000 bytes)

I.e., there will be no more annoying popup where you first have to set the 'Do this for all files' checkbox and then choose 'Copy and replace files''?

That would be wonderful!!!
Yes.

Note that you can already script this now using the backupto command.

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 11:00
by Sander Bouwhuis
I checked the help file, and it stated I needed to press <CTRL-SHIFT-F7> to do the 'Backup to' function.
But, that doesn't copy'n'paste my selection to the destination. Is it possible to (after having done the 'copy' part) to right click the destination and do the 'paste' part to accomplish this?

If so, what 'script' do I need to add to the right-click popup menu?

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 11:16
by admin
iycgtptyarvg wrote:I checked the help file, and it stated I needed to press <CTRL-SHIFT-F7> to do the 'Backup to' function.
But, that doesn't copy'n'paste my selection to the destination. Is it possible to (after having done the 'copy' part) to right click the destination and do the 'paste' part to accomplish this?

If so, what 'script' do I need to add to the right-click popup menu?
You cannot add a script to the right-click popup menu. But you can add it to the toolbar (User Buttons...).

I'm was not talking about the 'Backup to' function, but about the scripting command backupto.

Code: Select all

backupto location, [source], [on_collision], [preserve_dates], [create_log], [pop_stats]

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 11:44
by Sander Bouwhuis
Ok, I looked at this command, and I could set <curpath> for the location to be able to copy it to the current directory.

But, how do I set the source to use the clipboard? (or whatever it's called after you have chosen some files/directories and selected 'Copy' from the right-click popup menu)

Edit:
Actually, now that I looked at the 'File operations' settings it would appear this feature already exists! All we need is to have the setting be applied not only to the 'backup' operation, but to all copy operations.
Or, have a way to always do a backup operation when you do a copy operation.

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 14:38
by admin
iycgtptyarvg wrote:Edit:
Actually, now that I looked at the 'File operations' settings it would appear this feature already exists! All we need is to have the setting be applied not only to the 'backup' operation, but to all copy operations.
Or, have a way to always do a backup operation when you do a copy operation.
Yes. :) This is what will soon be added as "XYcopy 2.0"... it's not that easy to streamline it into the interface, but I'm working on it...

Re: beating a dead horse? - renaming on collision

Posted: 26 Jan 2011 14:42
by Sander Bouwhuis
Ah, ok. In that case I'll wait until it works out-of-the-box.

Thank you for your support.