I found a little anomaly with the code. It is just a little one, but if you run the file from the Jobs screen, everything works as it should (thanks again), but if you rerun the file from the Start Again button in the Job Control window of the Dashboard, the file will run, but if you use the external button to Pause the process, you get an error:
Error: Cannot print, because no file is selected!So I'm guessing the "job.file.fileName" line might need a bit of a tweak.
I'll see how I get on...
EDIT: Erm, it doesn't seem to do it now. I'll check again over the next few days and report back...