img

PaperCut Print Script of the Month #10 – Confirm jobs with high cost


PaperCut Print Script of the month

This months script is a nice and easy one and something that we thought was included in the recipes that come with PaperCut but we couldn’t see it. The goal is to inform users of the jobs cost is over a certain amount and give them the option to carry on printing or cancel the job, Once you have found a hot cup of coffee we can get to work.

 

The script is almost the same as the “Confirm jobs with a high number of pages” recipe included but with the slight change of focusing on the cost instead of the pages. The first thing we will want to do is work out what our cost limit will be and to set the message to show to the user.

Now we need to check to see if the print job costs more than the cost set above which we can do using the inputs.job.cost method.

We know that we have the right jobs now so we can show the prompt to ask the user if they want to print making sure that we set the result to a variable, so we know when to cancel the job.

The response variable will now contain one of 3 options PRINT, CANCEL and TIMEOUT. PRINT and CANCEL are based on the 2 buttons that appear and TIMEOUT will occur if nothing is selected at all. All we need to do from here is cancel the job if the response is either CANCEL or TIMEOUT if the user selects print we don’t want to do anything so we can just ignore it.

That is it for this month and as always the complete PaperCut Print Script is below. If you have your own requirements for a print script and you don’t have the time or in-house experience to make it you can find out how we can help you by sending an email to our sales team at sales@selectec.com

PaperCut Print Script
Latest News from Jonathan Bennetts
img

How do you bulk delete printers in PaperCut?

We get asked fairly often if it's possible to quickly delete printers from Pap...

Written by: Jonathan Bennetts

More
img

Automate Balance Updates in PaperCut

A few days ago one of our resellers came to us with an interesting problem. T...

Written by: Jonathan Bennetts

More

img

Fastek Consultancy have worked on many large scale PaperCut projects with Selectec over the last few years. The level of expertise and support from Selectec is of the highest standard. Fastek have been approached by a number of other software companies wanting to work with us on machine management projects and we have turned them all down, purely because of the strength of our relationship with Selectec

Gary Whitaker Fastek Consultancy
Back to Top ↑