PaperCut Print Script of the Month #14 – Black Friday

In between internal training on Presto and KPAX I sat down with John and collaborated on the next idea for our famous PaperCut Print Script Of The Month.

Is it always left to the last minute? No, yes, maybe…sometimes real work gets in the way of the fun things and if we do not get any inspiration from support emails/calls for SOTM we have to start using our imagination.

With Paul enjoying £30 off a Sonos Play:1 from John Lewis and some of the support team buying cheap Amazon Echo Dots to play their Spotify playlists at home we thought a Black Friday themed Script Of The Month should be made (long live consumerism)!

Grab a cup of coffee and a biscuit (we suggest these) and we shall begin. The idea behind this script is to offer (but not advertise) discounted printing in a “flash sale” style. With different discounts applied throughout the day.

First thing to do is create a bunch of variables these will cover the discount to give, messages to show and the time to start the “flash sale”.

Now we will need to work out if the “flash sale” is on by checking the hour the job was sent and making sure it isn’t over the end hour. To do this we will use you can also use getDays() and getMinutes() if you really wanted to. Once we have worked that out, we can change the value of FLASH_SALE to true for the next part.

We have a variable set that we can use to tell us if the “flash sale” is on so we can put that in an if statement then use actions.client.prompOK() to inform the user and change the cost of the job to the discounted rate using inputs.job.cost().

All that is left to do now is to add a note to the job so that we don’t forget why the discount was applied, to do this we use actions.job.addComment().

That is it for this month and as always the complete 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 then simply contact us.

Get in touch today |

Latest News from Ross Malyon

Job Ticketing for PaperCut

What's coming to Job Ticketing for PaperCut Having worked with PaperCut for se...

Written by: Ross Malyon


Large spool files and PaperCut MF

We can’t promise this blog post will be a riveting read, the glimpse behind t...

Written by: Ross Malyon



Since we started working with selectec and using papercut 7 years ago we have found the product and the support team excellent, long may the relationship continue

Simon Riley Direct-tec
This website works best using cookies which are currently disabled. We use cookies to help with our site analytics to improve our services.
Back to Top ↑