Page 1 of 1

Make subfiles imitate folder name

PostPosted: Sat Mar 08, 2014 12:05 am
by Sigurd
Hey. Is it possible with hazel? Hazel monitors a folder with downloaded folders with sub files and I want to name the sub files the same as the folder they are in without changing the extension of course.

So i have:

Folder1 with File1.avi inside and i want the subfile to be named Folder1.avi

Re: Make subfiles imitate folder name

PostPosted: Mon Mar 10, 2014 3:32 pm
by Mr_Noodle
See the sticky article above about getting Hazel to go into subfolders.

Now, to do the renaming, you can try something like:
Code: Select all
    If (all) are met
        If (all) are met for (the enclosing folder)
            Name matches (• folder name)
    Then
        Rename (• folder name)

To get the nested condition, hold down option while clicking the + button. (• folder name) is a custom token which matches anything.

Re: Make subfiles imitate folder name

PostPosted: Wed Mar 12, 2014 10:24 am
by Sigurd
What if i have my Download Folder with a folder inside and some subfile in that can i do the same?

I don't want to rename the files “Download Folder" I want to rename the files in the folder inside the Download Folder according to the folders name. If that makes sense? :?

Re: Make subfiles imitate folder name

PostPosted: Thu Mar 13, 2014 2:13 pm
by Mr_Noodle
The above will rename the file with its enclosing folder's name which is what I think you are asking for here.