How can I monitor a specific folder and know what processes access its contents?
Take a look at fs_usage - you may be able to parse the results it gives you to determine the PID that created the file of interest

sudo fs_usage | grep [file]