Check something and write to a file

I am interested in a Hazel rule doing two things:
(1) checking if a file is above a certain size.
(2) if true, write the path and filename to a file.
Let's call the file big_file.txt. It would contain a list of filenames that are big.
Doing part (2) in Hazel is what I'd like help with.
One could write a script, but I am not sure how to start.
(1) checking if a file is above a certain size.
(2) if true, write the path and filename to a file.
Let's call the file big_file.txt. It would contain a list of filenames that are big.
Doing part (2) in Hazel is what I'd like help with.
One could write a script, but I am not sure how to start.