This Python 3 script makes use of the 'xmlQueueStatus.dyn'
query in XML Access Option to identify that printer. If the
script is executed with one argument for the job to be printed,
it will send that job to the most available printer.
Here is the output of the script, and the full source code is below.
|