You should use the print method instead of saveAs.
It prints to a hold que, I can save to it manually. Its a postcript digital press.
The printer is not available under my printers
Ok, I found the solution. In windows map the "\\\out\\spool\\print\\Xerox\\" to a new network Drive. In my case I mapped it to X: so the code becomes:
// Xerox = Send the file to the Xerox Printer
var xerox = app.trustedFunction( function()
var xeroxPath = "x:\\";
this.saveAs(xeroxPath + this.documentFileName);
app.alert("PDF is sent to the printer",3)
Glad you fixed it, but three backslashes is not a meaningful escape sequence.
How do you mean, can you please explain in more details.
In a string "\\" means one backslash. You have that a lot. You have THREE. Why? I suspect you wanted to mean \\. But "\\\o" doesn't mean anything.
To find the correct path syntax of a specific location put a PDF file in that folder, open it in Acrobat and then execute this code in the JS Console:
It will output the file's full path. That's the path you need to put in your script.
Thank you very much try67! This will be very useful when I develop the more advanced scripts that I am working on.