Page 1 of 1

Process files only when finished writing

PostPosted: 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?

Re: Process files only when finished writing

PostPosted: 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.