I thought that it might be both useful and interesting to hear about how XyUsers have used XPPs ability to easily integrate your own Perl-based Division/ Job/ Site tools to solve a particular problem – whether that be a general purpose tool or solving what might appear to be a very publication-specific problem.

One simple Job tool that we have set up and has proved to be quite useful is named “showpages_snapshot” and it displays page count information for that Job.

The obvious way to show this information in PathFinder would be to switch on “View Page Counts” and then, of course, to “refresh”. That does indeed show us the information we require but it also puts a very significant overhead onto PathFinder as the information is obtained again everytime you move around your structure. I invariably switch it off again very quickly.

What we did was set up a Job Tool that made use of the showpages command – the same command that PathFinder uses.  However in our output we:

  • display the page count information
  • list the Divisions in DA ticket order (much easier to check that numbering is as it should be when it is listed in publication order)
  • list any Divisions not mentioned in the DA ticket (these may be legitimately not in the DA ticket but can act as a warning)
  • display some totals

Here is an example of information displayed in PathFinder via “View Page Counts”, and then how the Job Tool displays it.

Essentially the Job Tool will:

  • gets a list of all the Divisions in the Job
  • runs showpages -job -ds -t  (this outputs information in DA ticket order)
  • loop through the showpages output building our own output (in this case an HTML page), and also “tick” that a Division has been dealt with
  • keeps a page total to output at the end
  • output the list of all the Divisions that were not in the showpages output
  • open up the HTML page in the users browser.

And as I write this I can already see an enhancement that would be easy to implement in Perl – to also put out the Arabic equivalent of those Roman numbers…..