Page 1 of 1

trying to rename files/folders in a folder structure

PostPosted: Mon Apr 13, 2020 9:22 am
by mukalaaa
I am have been using Hazel for about 2 months now. I like it, but, sometimes it seems so complicated even when it comes to the little things.

I have a file system with multiple files inside it, all I want to do is, change the names to lower case. Simple!

Let me show you an example of my file structure:

(Movies Folder)
[2019 Movies subfolder]
{INDIAN movies subfolder}
-Movie A.mp4
-Poster Movie A.jpg
{US movies subfolder}
-Movie B.mp4
-Poster Movie B.jpg

I want to change all folders and files to lowercase. So, I used to rules:

Rule 1. go_into_subfolders
(IF all {kind is Folder}. Then, {Run rules on folder contents})

Rule 2. change_to_lower_case
(If all {Any File}. Then, {rename} with pattern {name - extension}). I clicked on name and choose lowercase

Now, when I run the rules... it only changes the files to lower case, it doesn't change the folders!!

here is what the file structure looks like after I run the rules:

(Movies Folder)
[2019 Movies subfolder] No change
{INDIAN movies subfolder} No change
-movie a.mp4 Changed
-poster movie a.jpg changed
{US movies subfolder} No change
-movie b.mp4 Changed
-poster movie b.jpg Changed

Any ideas on how can I change the whole file structure, files and folders, to lowercase letters?

Re: trying to rename files/folders in a folder structure

PostPosted: Tue Apr 14, 2020 9:08 am
by Mr_Noodle
The reason it doesn't work on folders is because rule #1 matches folders so any folders never get to rule #2.

Try swapping the order and then adding the "Continue" action to the rename rule.