Process files only when finished writing

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

Moderator: Mr_Noodle

Process files only when finished writing Thu Feb 27, 2020 6:34 pm • by leftnotracks
I use Handbrake to convert video files to a another format. I have a Hazel action watching the destination folder and opening the converted file in a program. The action seems to run as soon as the file starts being written. This means the receiving application can’t process it yet because the conversion hasn’t finished.

Is there a way to tell Hazel to pass the file only once it has been completely written?
leftnotracks
 
Posts: 14
Joined: Sat Oct 29, 2016 3:58 am

Re: Process files only when finished writing Fri Feb 28, 2020 11:45 am • by Mr_Noodle
I don't think Handbrake does the proper file locking for Hazel to know it's in use. In that case, you should add conditions like "Date last modified is not in the last X minutes" to delay a match until the file hasn't been touched in some time.
Mr_Noodle
Site Admin
 
Posts: 8523
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron