Author Topic: Ability to use RENAMER to copy a file and then rename the copy  (Read 172 times)

ubacher

  • Super Hero
  • ****
  • Posts: 1903
Ability to use RENAMER to copy a file and then rename the copy
« on: January 11, 2019, 05:39:03 PM »
Since this need has come up a few times now in this forum I think it is time to request this feature:

Have the ability to use the renamer to first copy a file and only then rename the copy (using metadata from the original/master file.)

jch2103

  • Super Hero
  • ****
  • Posts: 1585
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #1 on: January 11, 2019, 06:06:54 PM »
+1
John

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #2 on: January 11, 2019, 06:07:56 PM »
This would be a massive undertaking, if not even impossible.

Many Renamer presets use metadata, variables or data from the database....in each step.
If the file would first be copied, all that data will not exist (because the file is "new" and not in the database) when the Renamer preset runs. How could this ever work?
What if the copy is in a folder outside the database? No data exists at all for such a file, most steps cannot work.

Doing such a thing would mean to basically strip all functionality from the Renamer which does not immediately depend on the bare file name.,
Very hard to do, to document and to manage all the edge cases like buddy files, versioning, propagation and related features.

If this is very such a frequently required operation (I doubt this) it would be simpler to request a new feature which could be described as "Copy file and rename based on simple file name pattern".
Or, just copy using one of the built-in features in IMatch and then Rename in a second step. I do this open using Ctrl+C, Ctrl+V and a Renamer Favorite. Super easy.
« Last Edit: January 11, 2019, 06:17:26 PM by Mario »

jch2103

  • Super Hero
  • ****
  • Posts: 1585
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #3 on: January 11, 2019, 06:16:24 PM »
I understand. Is there another way to set up a workflow-friendly way to accomplish the objective of the request? Perhaps an app?


John

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #4 on: January 11, 2019, 06:18:22 PM »
I understand. Is there another way to set up a workflow-friendly way to accomplish the objective of the request? Perhaps an app?

Use Copy/Paste to copy the files in IMatch, then run a Renamer preset via a Favorite?

Carlo Didier

  • Super Hero
  • ****
  • Posts: 1140
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #5 on: January 11, 2019, 07:22:34 PM »
Why couldn't the renamer simply use the metadata from the source file. That would be the logical behavior.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #6 on: January 11, 2019, 07:53:20 PM »
I could point out many situations where metadata or variables would produce the wrong values for the copies. Not only variables which refer to the folder / file name but also metadata. I doubt it would make sense to weed all that out just to somehow break this feature into the Renamer. I'd rather write an app if there are more than two or five users who really need this.
« Last Edit: January 11, 2019, 07:55:24 PM by Mario »

wolboe

  • Jr. Member
  • *
  • Posts: 59
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #7 on: January 12, 2019, 02:12:30 PM »
It's possible, to do this without problems with  TOOLS - BATCH - why not with RENAMER?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #8 on: January 12, 2019, 02:52:47 PM »
Because both features have been designed for different things. None of them has been designed to copy files and to rename them afterwards.

The Batch Processor is for converting file formats. The result of the Batch Processor is a new file. You can control the output file name somewhat with the special variables available for that purpose.
The Renamer has been designed to rename files in a very flexible way.
The ability to copy the file to a different folder has been added because some users requested this to rename a file and create a backup on a secondary media.

ubacher

  • Super Hero
  • ****
  • Posts: 1903
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #9 on: January 12, 2019, 08:34:08 PM »
Not understanding the inner workings of the renamer one would think that the renamer could produce the new name first and
use it in the copy operation as the second argument.
Maybe a Rename for a copy operation step could be added which keeps the new name tucked away followed by
a Copy with new name step.???

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #10 on: January 13, 2019, 09:34:40 AM »
I don't want to break the Renamer just in order to add this. There are so many things to consider, from metadata which only applies the original file to buddy file handling, version chains and more.
The Renamer should remain the Renamer. I'd rather remove the Copy/Move steps if this makes the purpose of this feature more clear.

If there are enough users who need a pre-made replacement for a simple Copy/Paste + Renamer feature, I will consider this in a major feature I'm planning for IMatch 2020.

ubacher

  • Super Hero
  • ****
  • Posts: 1903
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #11 on: January 15, 2019, 03:58:32 PM »
A workaround for the user would be:

- Copy the file name to an attribute.
- Do the rename/copy
- rename the (original) files to the preserved file name.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #12 on: January 15, 2019, 04:16:47 PM »
A workaround for the user would be:

- Copy the file name to an attribute.
- Do the rename/copy
- rename the (original) files to the preserved file name.

Why would that be easier than to just

1. Copy the files
2. Rename them there in the Renamer?

Carlo Didier

  • Super Hero
  • ****
  • Posts: 1140
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #13 on: January 15, 2019, 04:31:53 PM »
A workaround for the user would be:

- Copy the file name to an attribute.
- Do the rename/copy
- rename the (original) files to the preserved file name.

Why would that be easier than to just

1. Copy the files
2. Rename them there in the Renamer?

Because the renamer wouldn't see them if the copies are not meant to be included in the database?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 21005
Re: Ability to use RENAMER to copy a file and then rename the copy
« Reply #14 on: January 15, 2019, 05:13:22 PM »
If the files are copied outside the database, things become a lot more complicated.