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

Slack – Support for the future

Slack is a $20bn messaging app. That flippant summary does not do it...

Written by: Ross Malyon


Custom PaperCut reports

Can PaperCut MF report on…? PaperCut has tons of custom PaperCut report o...

Written by: Ross Malyon



Having dealt with Selectec for the past 8 years the service and support we get for PaperCut MF has been exceptional, support requests are met in a short timescale and dealing with the friendly and knowledgeable staff is always a pleasure

Phil Kelly Midshire Business Systems
Back to Top ↑