Exclude files being written to (Handbrake)

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

Moderator: Mr_Noodle

Exclude files being written to (Handbrake) Thu Aug 06, 2020 2:13 pm • by Trubes
I searched the forum and found a couple of topics from around 2010, but didn't find anything recent (and the old topics did not have a solution).

But - I'm using Handbrake to process media files, and the application can sometimes take several hours to complete processing. I've tried using the file modification date to create rules, but that doesn't seem to work. For example, I created the rule:

Code: Select all
If all of the following conditions are met:
Kind is Movie (and)
Date Last Modified is not in the last 10 minutes

Do the following to the matched file or folder:
Move to the folder: Movies


But even with the "Date Last Modified is not in the last 10 minutes" Hazel will still move the file before it has completed processing.

Does anyone have any tricks or suggestions to handle this situation?

Thanks in advance for any advice.

PS - I posted a feature request to the Handbrake Github suggesting they use a temporary file extension while the file is processing, and only change to a .m4v (for example) extension after the file is finished. That would make it much easier to write a rule in Hazel.
Trubes
 
Posts: 3
Joined: Thu Aug 06, 2020 2:03 pm

You might need to try a larger window of time. Next time you use Handbrake, you can try checking the modification date and time how long it takes to update.
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support