3 Replies Latest reply on Feb 20, 2017 1:20 PM by arekh2792424

    This script worked fine for a whole week, and now throws error 30616

    arekh2792424 Level 1

      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:



      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 ;







      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