<!-- wp:html -->
<p style="text-align:center; font-size: 22px; line-height: 1.5em; ">There were tonnes of new features introduced in version 19.1 of PaperCut. With so much going on it can be easy to miss things in all the excitement; one of the many exciting new features that we wanted to draw your attention is Device Scripting.</p>
<!-- /wp:html -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">What is Device Scripting all about, and why should you want to use it?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Here at selectec we get many feature requests for PaperCut, be it via phone, email, support ticket, slack or via comments on our webinars.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Once we've filtered out the noise, we present these ideas to PaperCut.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Over the years, lots of noise has been made around giving extra control over copier functions. The end result of a lot of emails and Jira tickets is Device Scripting.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">So tell me already, what is Device Scripting?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Before 19.1 if you had ever tried to introduce a colour page quota or restriction for the copying function, much like you can with a print, you would have (unfortunately) run into a dead end. While "Print Scripting" has been offering customers powerful (and flexible) control over their print jobs for a long time, it is only for print jobs and not device functions such as copying. Well, lucky for you, everything has changed now!</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>One of the more popular feature requests we receive has been the option to build on the print script functionality and offer it to copying. It is a natural progressive step for the feature, once you have printing under control in your organisation, bringing tighter control over reproduction makes perfect sense.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Finally, there is a way to manage user behaviour to your liking for copying, and the answer to all these problems is Device Scripting.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Perhaps we underplayed the function, it does not just cover copying you can set up rules and policies for copy, scan and fax (assuming people still fax in 2019). All of this is based on fully custom criteria, right down to individual users, or even time of day.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You'll be able to customise your PaperCut set up with the help of Device Scripting, the only limitation being your imagination (ok... and the API!)</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>You might want to set a daily colour copy limit for a group of users, allow free copying during exam times, or block specific users from scanning functions. You can run wild and tweak the system exactly as you need it.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">How does Device Scripting work?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Magic! And by writing a JavaScript directly into a code editor found in the PaperCut Admin web interface, it looks very similar to the Print Script editor although it is located at a different place. Device Scripting is in the Device tab, when selecting the device there is now an additional "Scripting" tab:</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:image {"id":8067} -->
<figure class="wp-block-image"><img src="https://staging.selectec.com/wp-content/uploads/2019/10/scripting-tab-papercut.jpg" alt="Device Scripting" class="wp-image-8067"/></figure>
<!-- /wp:image -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>To help get you up and running some functionality is provided as pre-built recipes that are ready to use "out of the box", just like you can with&nbsp;<a target="_blank" href="https://www.papercut.com/support/resources/manuals/ng-mf/common/topics/script.html" rel="noreferrer noopener">Print Scripting</a>. Alternatively, you can make a script or ask us to create them for you.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">Does it work on every device?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Not yet, but it is early days. Currently (as of 19.1) device scripting is <em>not</em> supported on the following platforms:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Brother</li><li>Fuji Xerox (legacy AIP only - ApeosPortV+ devices are supported)</li><li>OKI Open Platform</li><li>Toshiba</li><li>Xerox</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>All other platforms are good to go.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">What if you apply a script to an unsupported device?&nbsp;</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Well... the world ends, and the dead rise from the grave! Human sacrifice, dogs and cats live together, mass hysteria. OK, we lied, nothing happens. The Device Script hook won't be triggered, rendering that section of the script useless. Plus, if you accidentally apply a Device Script to an unsupported device, a warning message appears in the Admin UI.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Can we get a thumbs up for that? You can have two if you know the movie reference used earlier. Didn't get it? OK, fine... it was Ghostbusters.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left"><strong>A</strong>ny limitations that you need to worry about?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The hook deviceLoginHook, which is used for Device Scripting, does not always support guest/anonymous access on some devices. Not a massive issue, but one you should be aware of. It should work on all devices - however, we have seen mixed results between devices.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For this scenario, it is worth to add the following line in your deviceLoginHook code just in case:</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:image {"id":8070} -->
<figure class="wp-block-image"><img src="https://staging.selectec.com/wp-content/uploads/2019/10/device-login-hook.jpg" alt="" class="wp-image-8070"/></figure>
<!-- /wp:image -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>That way, once the script is applied, you can walk up to the device and hit the Guest button to log in, taking note of the time. Then return to the PaperCut MF Admin web interface and check the Application Log subtab of the Logs tab.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>If you see an entry at the noted time of login which contains the text "Phew, looks like guest access is supported", you are all good ☺.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"left","level":3} -->
<h3 class="has-text-align-left">Will you need to have mad programming skillz?</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You'll need the same good understanding of JavaScript that you have for PaperCut Print Scripting. To help you out, Device Scripting also comes with a handful of popular scripting recipes and snippets that can be adapted for your environment.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The built-in recipes (as of 19.1) include:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Deny device login over weekends</li><li>Send an email alert when users access the copier&nbsp;</li><li>Impose a daily colour copy limit&nbsp;</li><li>Give discounts for copying and scanning for staff</li><li>Change pricing models for user groups</li><li>No colour copy during peak periods</li><li>Free copying during class time</li><li>Offer discounts to encourage copier use</li><li>Superuser bypass for all login and colour copy restrictions</li><li>Place print release restrictions on users at the MFD</li><li>Restrict selectable shared accounts on a device</li><li>Send email alerts for large copy jobs</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>There is a new handy <a href="https://www.papercut.com/support/resources/manuals/ng-mf/common/topics/script-device-api.html">Device Script API reference</a> with everything you need to know:</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:block {"ref":7017} /-->

<!-- wp:spacer {"height":20} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"align":"center"} -->
<h2 class="has-text-align-center">Need some help or a custom Device Script?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">If this all looks like Klingon to you, then please give us a shout using the form below&nbsp;or via Slack.</p>
<!-- /wp:paragraph -->

<!-- wp:html -->
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
  hbspt.forms.create({
	portalId: "5940584",
	formId: "479d38bd-4934-4090-a2e3-b7b76f4ac195"
});
</script>
<!-- /wp:html -->