Page 1 of 1

Move Files based on Extension

PostPosted: Thu Feb 23, 2023 8:49 pm
by klind
I'm always looking for ways to do things easier, better and faster...

I have a bunch of rules that move files based on the file extension. I'm wanting to know if, using Hazel, there is a way to consolidate this a bit. For example is it possible to move all video files using one rule to a given directory named for the files extension.

To further clarify, given a bunch of files with various video extensions such as ASF, ASX, MKV, MOV... etc., how can I make a single rule that moves these files individually to a directory structure such as VIDEO/ASF, VIDEO/ASX, VIDEO/MKV... etc.

What I have works, but whenever I make any change to my directory structure or, as I did recently, obtain a new computer or drive, I need to do a lot of work within Hazel to get things running again.

Re: Move Files based on Extension

PostPosted: Fri Feb 24, 2023 10:25 am
by Mr_Noodle
How about using "Kind is Video" instead of going off of extension?

Re: Move Files based on Extension

PostPosted: Fri Feb 24, 2023 7:06 pm
by klind
Please enlighten me. I can not seem to locate 'video' either in the drop down for Kind nor in the Other at Select a type.

Even if I could, I don't see a way to make this work unless I move all video files into the same directory. I am trying to put each type of video file in separate directories based of that particular file extension.

I'm sure you way more experienced than I, but I simply don't understand Kind will make this work.

Re: Move Files based on Extension

PostPosted: Sat Feb 25, 2023 10:56 am
by TheWart
Kind is a condition in the rules that can be set to Movie. Screenshots attached. (Ignore the obvious duplicate rules in my screenshot—just did that to bump the pop-out menu below the If… statement.

https://www.dropbox.com/s/kszgh7v2d3lqf27/hazelvid1.jpg?dl=0)
https://www.dropbox.com/s/6w0hdq6itn49wd8/hazelvid2.jpg?dl=0

Then use something like sort into subfolders or move based on extension. I didn't build out the rule because I am not sure what you want, but here is an idea to play with!

https://www.dropbox.com/s/al4pibh8v6fgsbd/hazelvid3.jpg?dl=0

Re: Move Files based on Extension

PostPosted: Sun Feb 26, 2023 3:12 am
by klind
I see... Maybe.

So I need two rules one that moves files by kind to a particular folder, then another rule in that folder that will move files to it sub-folder.

I'll give that a try.