Subtitles And Movies

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

Moderator: Mr_Noodle

Subtitles And Movies Fri May 13, 2016 3:40 pm • by Teles
So, im having problems to build a rule and maybe someone could help me out.
I want a rule for my Movies folder so that every time that i move a new folder inside it, it checks:

1 - if theres is any movie file in it
2 - if theres is NOT a .srt file in it (subtitle extension)
3 - if previously matched, apply:
4 - open the movie file with my default subtitle application

The main problem here is that i cannot make hazel identify the presence (or not) of the .srt file, so it applies the rule for every movie and i ended up with duplicated subtitles. I have a working rule that makes unwanted duplicates:

If all are met:
Kind is Movie
Date added is after Date Last Matched

Do the following:
Open with application Subsmarine
Continue matching rules


Well, on top of that, i built an not-working rule:

If all are met:
Kind is Movie
Date added is after Date Last Matched

If all of the following conditions are met for it enclosing folder:
Contents do not contain match srt
Do the following:
Open with application Subsmarine
Continue matching rules


Any suggestions?
Teles
 
Posts: 2
Joined: Fri May 13, 2016 3:12 pm

Re: Subtitles And Movies Fri May 13, 2016 4:02 pm • by Mr_Noodle
Read this article: https://www.noodlesoft.com/kb/how-to-cr ... onditions/

Using nested conditions, you can have conditions based on the attributes of a different file/folder than the one being processed. In this case, you can try doing "enclosing folder" and within that "any of its sub-files" to check the existence of a sibling srt file.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Subtitles And Movies Sat May 14, 2016 9:38 am • by Teles
It worked with one nested condition within another, thank you for your help!

The final working rule:
Image
Teles
 
Posts: 2
Joined: Fri May 13, 2016 3:12 pm


Return to Support