Page 1 of 1

Unarchive zip, then rename files

PostPosted: 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,

Re: Unarchive zip, then rename files

PostPosted: 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.

Re: Unarchive zip, then rename files

PostPosted: Sun May 03, 2020 10:53 am
by morkafur
Sounds good.

Thanks!