Renaming using elements from file name

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

Moderator: Mr_Noodle

Renaming using elements from file name Thu Dec 22, 2022 4:40 pm • by mclendening
I want to rename a jpeg that is downloaded with a filename in this pattern:

Page 3 of The Grinnell Herald,published in Grinnell, Iowa on Tuesday, May 17th, 1904.jpeg

The desired result would be:

IA-GrinnellHerald_1904-05-17_p-3.jpeg

I searched the forum and couldn't find this particular set of issues. I've been away from Hazel for several years, so I'm really struggling. I would prefer a rule or sequence of rules that would work on files clipped from different newspapers, without the need to create a duplicate set of rules for each unique newspaper title or location.

Any guidance would be appreciated.
mclendening
 
Posts: 1
Joined: Thu Dec 22, 2022 3:44 pm

Re: Renaming using elements from file name Fri Dec 23, 2022 10:27 am • by Mr_Noodle
Look up "match patterns" in the help. Using those, you can set up custom attributes to save the parts of the name you want.
Mr_Noodle
Site Admin
 
Posts: 11236
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support