Printing script

This script is used as part of the system process which prints small packets and bulk labels. It executes on startup of the iMac in the packing shed via a shell script called from login items. It then runs, checking all of the folders every 30 seconds.

The source code can be found at

When batches are requested to print, the batch printing scenario will ultimately be called, this scenario uploads packet designs/ barcodes to folders inside /seed co-op dropbox/sales/ninox/drop print folders. The folders used are set within the config.json file

The script will ignore any files which do not have precisely the expected filenames, examples are:

These files will also be cleaned at the end of each day via the dropbox cleaning integromat scenario

It is at the point that both the packet pdf and the barcode image are in their corresponding dropbox folders that this script will act. We match them up by filename. I.e…

If we find a match, the script will do the following: