Need help with a workflow for media files and folders

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

Moderator: Mr_Noodle

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
kweigand
 
Posts: 2
Joined: Thu Jul 05, 2018 10:16 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks for the help!
kweigand
 
Posts: 2
Joined: Thu Jul 05, 2018 10:16 pm


Return to Support