Make subfiles imitate folder name

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

Moderator: Mr_Noodle

Make subfiles imitate folder name 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
Sigurd
 
Posts: 3
Joined: Thu Oct 24, 2013 8:52 am

Re: Make subfiles imitate folder name 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Make subfiles imitate folder name 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? :?
Sigurd
 
Posts: 3
Joined: Thu Oct 24, 2013 8:52 am

Re: Make subfiles imitate folder name 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support