#Apple folks, what is the best way to monitor a folder under #macOS and invoke a shell script/command when new files are added?

I want to have a PDF-inbox, which gets OCRt whenever I add a new file. Currently my NAS does this via cronjob and I need a better solution.

#Automator ? #FSWatch ?

fswatch - Monitor File and Directory Changes in Linux

fswatch is a cross-platform, file change monitor that gets notifications when the contents of the specified files or directories are changed/modified in Linux.

fswatch – Track File and Directory Changes in Linux

#fswatch es un monitor de cambios de archivos multiplataforma que recibe alertas de notificación cuando se altera o modifica el contenido de los archivos o directorios especificados.

https://www.linuxparty.es/2-amd/11206-fswatch-vigilar-y-supervisar-cambios-o-modificaciones-de-archivos-y-directorios-en-linux.html

fswatch: vigilar y supervisar cambios o modificaciones de archivos y directorios en Linux

(adsbygoogle = window.adsbygoogle || []).push({}); fswatch es un monitor de cambios de archivos multiplataforma que recibe alertas de notificación cuando se altera o modifica el contenido de los archivos o directorios especificados. Ejecuta cuatro tipos de monitores en difer...

How To Monitor File Changes Using fswatch In Linux - OSTechNix

Fswatch is a free, open source multi-platform file change monitor utility that helps us to monitor file changes in Linux and Unix systems.

OSTechNix

#fswatch is a file watch program.

fswatch is a tool that monitors files and directories using platform-specific or agnostic programs and reports the results to stdout. fswatch can monitor many files at once, supports regex for matching or excluding files, and can report various details about the files that may have changed.

Website 🔗️: http://emcrisostomo.github.io/fswatch

apt 📦️: fswatch

#free #opensource #foss #fossmendations #sysadmin

fswatch

fswatch : A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.