Unarchive zip, then rename files

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

Moderator: Mr_Noodle

Unarchive zip, then rename files Fri May 01, 2020 7:30 am • by morkafur
I'm trying to do this with native Hazel if possible.

I want to be able to drop a zip file in a folder, have Hazel un-archive it (that works fine), but then also rename the files from having a "0" extension to a "txt" extension. I can't figure out how to do the last part.

I try to add a rename rule, but all that does is rename the un-archived folder created. If I use the "run rules on folder contents", that doesn't seem to help either.

Do I need to run a shell command to rename the files after unarchiving them or can Hazel do these two steps natively?

Thanks in advance,
morkafur
 
Posts: 15
Joined: Mon Mar 19, 2012 12:54 pm

Re: Unarchive zip, then rename files Fri May 01, 2020 9:26 am • by Mr_Noodle
You need to do it in separate rules. After unarchiving, any subsequent actions operate on the folder created.

You will need a rule to go into subfolders and a separate rule to rename the files, making sure not to have it match the folder but the files within.
Mr_Noodle
Site Admin
 
Posts: 11870
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Unarchive zip, then rename files Sun May 03, 2020 10:53 am • by morkafur
Sounds good.

Thanks!
morkafur
 
Posts: 15
Joined: Mon Mar 19, 2012 12:54 pm


Return to Support