Hi Broomop,
Thanks for your advice my friend, this is what I have now:
//
// Customize your print process with Print Scripting. You don't have to be a
// programmer to use Print Scripting. Use one of the many pre-written recipes
// already written for you, or write your own in JavaScript using snippets and
// reference documentation.
//
function printJobHook(inputs, actions) {
//
// Customize your print process with Print Scripting. You don't have to be a
// programmer to use Print Scripting. Use one of the many pre-written recipes
// already written for you, or write your own in JavaScript using snippets and
// reference documentation.
//
function printJobHook(inputs, actions) {
inputs.job.documentName - this gets the document name. Then do something like.
var n = inputs.job.documentName.indexOf("%20");
if (n > 0) then
{
actions.job.cancel();
actions.log.debug('Job from user "' + inputs.user.username + '" was canceled.');
}
}
}
-----------------------------------------------------------------------------------
The error I'm getting is "The Script failed to validate, check the script syntax: missing ; before statment (Printer-script#15"
I wish I knew exactly what that meant other than presumably missing a semi colon somewhere, hopefully that makes a bit more sense to you.