Sorting into sub-folders

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

Moderator: Mr_Noodle

Sorting into sub-folders Thu Feb 28, 2013 11:27 am • by alex4478
Hi,

I have video files that are TV Shows and I have things set up so far that the show is downloaded, converted to iPhone format, metadata added and then stored in a folder called "Too Sort".

I think Hazel is an awesome application, that I know can do what I'd like it to do, but I'm not awesome and there is the issue.

When a file is put into the folder "Too Sort" I'd like Hazel to move it into a sub folder based on the name of the show, and then within that 1st folder based on which ever season the episode is from.

I just can't get my head around the use of the MATCH condition and then figuring out the correct structure for the condition to then be applied to the file to then have it sorted.

I have multiple shows (Burn Notice, Criminal Minds and others) which share a similar file name structure (Burn.Notice.S02E04...., Criminal.Minds.S03E01....., or Covert Affairs.S01E03).

I think that something that would be useful to consider is that not all the file names have "." separating the names of the show, so the "anything" selector from the MATCHES structure would be useful.

Any help would be appreciated, cheers!
alex4478
 
Posts: 10
Joined: Thu Feb 28, 2013 11:10 am

Re: Sorting into sub-folders Thu Feb 28, 2013 1:27 pm • by a_freyer
Try looking at a few of the Custom Matching tutorials I have placed in the tips forum. But for you, the keys should be like this:

Criminal.Minds.S03E01 will be matched with (ShowName).S(SeasonNumber)E(EpisodeNumber)

Custom Tokens:
ShowName is anything: (...)
SeasonNumber is digits: (12)
EpisodeNumber is digits: (12)

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     name matches (ShowName).S(SeasonNumber)E(EpisodeNumber)

Do the following to the matched file or folder:
     Sort into subfolder with pattern (ShowName [Replace Periods with Spaces])/(SeasonNumber)
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Sorting into sub-folders Fri Mar 01, 2013 4:49 am • by alex4478
Thanks for the reply.

Image

Shows the result of my efforts.

I was almost there but the folder name is not quite right, I guess I wasn't supposed to type the wrong bits in.

Any suggestions?
alex4478
 
Posts: 10
Joined: Thu Feb 28, 2013 11:10 am

Re: Sorting into sub-folders Fri Mar 01, 2013 4:51 am • by alex4478
I removed the words that I had typed in and now the file is just put into a folder called "burn.notice", but how do I get the video to then go into a sub-folder of "burn.notice" based on the season (S03)?
alex4478
 
Posts: 10
Joined: Thu Feb 28, 2013 11:10 am

Re: Sorting into sub-folders Fri Mar 01, 2013 5:10 am • by alex4478
Solved it ... Almost!!!
Image

The above moves the video files into sub-folders of the (ShowName). And the sub-folders begin "Season (Season). That's great.

But how could I get the ShowName to be "Burn Notice" rather than "burn.notice"?
alex4478
 
Posts: 10
Joined: Thu Feb 28, 2013 11:10 am

Re: Sorting into sub-folders Fri Mar 01, 2013 11:41 am • by a_freyer
Click the light blue arrow on the custom token in the box and you'll see some text modification options
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado


Return to Support

cron