Renaming file using part of existing file name?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Renaming file using part of existing file name? Fri Sep 26, 2014 12:01 pm • by MacOCD
I download bank statements from various accounts with the same bank that have a similar naming convention.

eg:
12345678-999888777666-082014.pdf where the 999888777666 would be the account number.

Currently I'm using Hazel to rename the file
MyBank Savings Account 12345678-999888777666-082014.pdf
and move it into a folder for that account.

It works OK, but I'd prefer the statements to be named in Date order. I don't need to extract the date from within the PDF (which contains many dates) as the last 6 digits of the file name contain the month & year of the statement. I'd like to be able to use that information to rename the file

2014-08 MyBank Savings Account 12345678-999888777666-082014.pdf

Is it possible in Hazel to rename a file multiple parts of the existing filename?

Thanks for any help,

Mark.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am

Yes, search the in-app help for "match patterns" which is what you want to use to accomplish this.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Match Patters was exactly what I needed, it works brilliantly.

Thanks.
MacOCD
 
Posts: 44
Joined: Fri Sep 26, 2014 11:02 am


Return to Support