Page 1 of 1

Need help with a workflow for media files and folders

PostPosted: Thu Jul 05, 2018 10:32 pm
by kweigand
I have a media server that has movie folders.
These movie files are in separate folders with a set naming convention of [Movie Title (YYYY)]

I want Hazel to Read the Year off the movie folder
Create a new folder with the year as the folder name eg. 1982 unless one already exists
Move the movie folder into the appropriate Year folder.

EX. => Identify movie folder 'Star Wars - A New Hope (1977)'
Read year between parentheses '1977'
If that folder, '1977' does not exist, create it in root of the watched folder
Move the movie folder and its contents to '1977'
so new file structure is

folder 1977 -|
folder - Star Wars - A New Hope (1977) -|
the content of Star Wars - A New Hope (1977)



Thanks for your help as I am new to Hazel

Re: Need help with a workflow for media files and folders

PostPosted: Fri Jul 06, 2018 10:59 am
by Mr_Noodle
You can use a match pattern to match titles ending with a number within parentheses, making sure to use a custom attribute to match that number. You can then use that custom attribute in the Sort into subfolder action. Check the help for "match patterns" for more details on how to do this.

Re: Need help with a workflow for media files and folders

PostPosted: Fri Jul 06, 2018 2:52 pm
by kweigand
Thanks for the help!