I did some tests on Ubuntu 16.04.
With Caja- Actions the scripts (“Print” or “Print with …”) only work on the selected files.
That is, they lack the additional functions of selecting a folder or right clicking on the open folder, printing all the files contained in it, as it happens with the other method.
The error message for non-printable files occurs regularly.
Route: bash
Parameters: /home/username/config/caja/scripts/Print %B
that is, the path of the script with the addition of the% B parameter
The% F parameter does not work, I’ve also tried some other parameters with no results.
However, in this way you have the command directly in the context menu, without going through Script.