mdlisten(1) is a command-line utility to issue long-running Spotlight queries from the command line.
mdfind(1) with the
-live option except that it outputs the absolute path of new results instead of aggregating them into a useless count.
make and then
By default it installs to /usr/local, install with a customized
make install PREFIX=/opt to change the install location.
Upload screenshots to your web host as you take them.
mdlisten kMDItemIsScreenCapture = 1 | while read -r filename; do scp "$filename" firstname.lastname@example.org:/var/www/domain.com/screenshots done