These are chat archives for PaperCutSoftware/PaperCutExamples

6th
Feb 2019
Wouter Schoofs
@WouterSchoofs
Feb 06 11:00
Hi everyone! I'm wondering if somebody has some experience with advanced scripting. I want to trigger the joblog when copies are created
we created a script that checks athe job logs
```function printJobHook(inputs, actions) {
``````
```  if (!inputs.job.isAnalysisComplete) {```
   ``` return;v
 ``` }```
  ``````
  ```// Only for grayscale prints```
  ```if (inputs.job.isGrayscale) {     ```
Wouter Schoofs
@WouterSchoofs
Feb 06 11:05
is their somebody who can help me with trigger also this printJobHook when somebody takes a copy?
Wouter Schoofs
@WouterSchoofs
Feb 06 11:17
It looks like it is not possible to do Advanced Scripting on copies. Is their somebody else with some experience to trigger this anyway?
Or somebody who knows another option to give users 150 free b&w prints incl. b&w copies
Alec Clews
@alecthegeek
Feb 06 12:08

You can scripy copying at the moment.

Doesn't PaperCut's quota feature do what you need?

https://www.papercut.com/tour/print-quotas/

Alec Clews
@alecthegeek
Feb 06 12:24
I mean "you can't script copying at the moment" -- sorry
Wouter Schoofs
@WouterSchoofs
Feb 06 13:11
Hi @alecthegeek thanks for your answer. Yeah that should be a good option but we want only give b&w prints free
Alec Clews
@alecthegeek
Feb 06 20:31

Then that's a problem we can't properly address at the moment. Please raise the question to support@papercut.com so that it get's some visibiility with the our product team. Please tell them the actual problem i.e. you want free quota to apply to greyscale printing/copying only, rather than requesting an API change.

Sorry about that

Alec Clews
@alecthegeek
Feb 06 21:18
I've had a discussion with one my of colleagues @WouterSchoofs and sending in a formal request would be very much appreciated. I think the feature you are looking for is "Seperate quota management for colour and greyscale jobs"
itadder
@itadder
Feb 06 22:35
heya
does someone have a premade top printers used sql query that I can use as a view
itadder
@itadder
Feb 06 23:04
I want to get sql query for print usage
but the example don't work for me
I wan to use this in powerbi
Alec Clews
@alecthegeek
Feb 06 23:05
Which example did you use and what problems did you have?