Monitor file change and replace file on macOS

Job ID: 34587685

Budget: $30 – $250 USD

I need a program/script that monitors the contents of a directory in macOS for changes (or a download from a particular website) and then replace it with another file. The file is a PDF. I can use fswatch that taps into fsevents or any other services or applications to build the solution. It can be a zsh script, macOS app with a daemon process or anything else. The only requirement is that I need the solution built fast. It will only be used for one particular file being downloaded to the folder from a particular site.
Related categories: System Admin Mac OS Shell Script Applescript