#1 2006-04-12 12:51

GilesKS
Member
Registered: 2006-04-12
Posts: 2

Renamer with Text files

Hi Denis,

Renamer is a great program, I use it quite a bit. I've just downloaded v3.05, and love the new flexibility of being able to change the order of the rules.

I have a suggestion (actually 2) for a small change. That is, it doesn't seem possible to combine renaming using a text file and the rules - whenever I apply one it clears the other. Maybe that's just me doing it wrong, as this is the first time I've used the textfile option. But it would be quite handy to import names and then modify them in the usual way.

The second is whether any kind of a look up option be too complex to include. That is, selective replacement of text in the file name with text from a reference file.

Anyway, just my thoughts on ReNamer. Thanks again for a great program.

Offline

#2 2006-04-13 00:56

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,041

Re: Renamer with Text files

At the moment, text files and the rules can not be combined, since new names from the rules are always re-generated from the original name, while new names from the text file are only for 1 go.

There is a simple workaround for that: once you've loaded you new names from the text file - rename your files, so they store that name, and after that - you can use rules for manipulating with those names wink

Hmm... I dont really understand the second suggestion... can you explain it in more details please?

By the way, you will be able to do (virtually) anything with your filenames, with a new RascalScrept rule, which is coming soon smile

Offline

#3 2006-04-18 21:46

GilesKS
Member
Registered: 2006-04-12
Posts: 2

Re: Renamer with Text files

Hi Denis,

Yes, I see that in most cases the workaround would be fine. Although, if some of the new names in the text file were identical for whatever reason that would prevent that approach.

My second suggestion wasn't very important, but what I had in mind was the abitily to insert/replace text in the file depending on the content, with reference to an external table. E.g. if I had files containing the letters A, B & C, and a table relating each of those letters to some specific text, then I could replace and/or insert the text from the table depending on the original letter. I don't know if that's any clearer, but I'm not sure that it would have much use in general compared to the existing rules.

Offline

#4 2006-04-20 10:27

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,041

Re: Renamer with Text files

Good news smile
You wanted to "combine renaming using a text file and the rules", and here is the rule that will do that: PascalScript, enter a code below into its field:

var I: Integer;
begin
  I := I + 1;
  FileName := FileReadLine('C:\names.txt', I);
end.

This will create a rule, which will read lines from 'C:\names.txt' file (which you can change to your file), and place them as the new filenames! After that, you can add any other rules... Tell me how it works for you, ok? And don't forget to download the latest dev build: ReNamerBeta.zip

About your second suggestion... I'm a bit confused, tell me more...

Offline

Board footer

Powered by FluxBB