Copy link to clipboard
Copied
Hello everyone,
I am thuroughly confused. Last week I wrote a very basic script that prints a grayscale proof. It has had zero hitches and worked great until today when it started throwing this error:
---------------------------------------------------------------------------------
"Error Number: 30616
Error String: The property's value is locked and cannot be changed.
Engine: Main
File: (the filepath)
Line: 60
Source: pagePosition = PagePosisions.centered"
---------------------------------------------------------------------------------
This is the script:
---------------------------------------------------------------------------------
Proof();
function Proof()
{
/* Change this variable to the string of the desired printer output: */
var myPrinter = "Bizhub C654e PS" ;
if (app.documents.length == 0){
alert("Please open the document you would like to print a proof for and try again");
}
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
with (app.activeDocument. printPreferences)
{
printer = myPrinter ;
copies = 1 ;
pagePosition = PagePositions.centered ;
scaleMode = ScaleModes.scaleToFit;
printBlankPages = true ;
colorOutput = ColorOutputModes.COMPOSITE_GRAY ;
}
app.activeDocument.print();
}
---------------------------------------------------------------------------------
I dont understand why it randomply stopped working. And If I remove that line that the error references it just throws the same error for the next changed preference and so on. Please help as this is infuriating
Copy link to clipboard
Copied
It's not the script itself, it is the print drivers or indesign settings in that regard, that locked the properties.
Copy link to clipboard
Copied
I figured it was something outside of the script, any idea what might cause this to change or what settings in indesign could effect this?
Copy link to clipboard
Copied
Any assistance anyone? This has become a fairly major roadblock in my printing scripting seeing as I cannot change printer settings....