Batch rename

I’d like to rename the file names for a few hundred files. In this particular case, the file name contains a date (yyyy-mm-dd) that I’d like to move from it’s current location within the file name to the beginning of the file name. I already made the mistake of accidentally renaming a few files outside of EF.

Is there any way to properly do this within EF? … Within the Finder I would use “A Better Finder Rename” app to do these types of renames.

There are some scripts that can help with renaming. In this case, it sounds like you want Replace in Filenames (Regex).

Thxs… I already looked at that… If I were willing to master the script language, I might be able to make that work :wink:

It’d be great if you did a collaboration with A Better Finder Renamer to allow Eagle Filer to rename it’s database files using that software… if that’s possible.

You don’t have to do anything with a script language. You can just download the file and install it into the system script menu.

To move a date to the beginning of the filename, you could tell it to replace:

(.*)(\d\d\d\d-\d\d-\d\d ?)(.*)

with

$2$1$3

Ok… I’ll play around with it… Thxs for your help.

For future reference, Michael provided me with this solution if there is more than one date in a file name and you wish to move the FIRST date to the beginning… a slight change to the ‘Find’ portion of the RegEx syntax:

(.*?)(\d\d\d\d-\d\d-\d\d ?)(.*)