nharding
Joined: 19 Nov 2007 Posts: 11
|
Posted: Sun Nov 25, 2007 4:20 am Post subject: Processing the names twice |
|
|
If I have a selection of files, that when processed give Photo 17, Photo 21, Photo 100, Music 1, Music 10, I would like it to rename them to Photo 017, Photo 021, and Photo 100, Music 01, Music 10. I know how to do a rule to rename n digits to m digits, but I want to write a user command that automatically detects the highest value used for each name, and then pads the other names to match.
Another thing that will use the same code is to automatically move files into subdirectories, so that in the example above it would create Photo and Music directories and move the files into those directories (but only if more than a certain threshold of files was reached).
Neil Harding |
|