6 Replies Latest reply on Jan 16, 2013 7:32 AM by Gustavo Del Vechio

    Choose the correct printer to print (leave default printer)

    Gustavo Del Vechio Level 3

      Hi

       

      I´m writting a script to automate the printing process in Photoshop. I´m having problems when telling Photoshop to set the correct printer...

       

      The printer I want to print is a home network printer called "\\PC1\Sony UP-DR150"

       

      So I tried it:

       

      var doc = app.activeDocument

      doc.printSettings.activePrinter = "\\PC1\Sony UP-DR150"

       

      The result of the code is always my computer default printer. Photohop does not change the printer!!!

       

      Now another test:

       

      var doc = app.activeDocument

      var pr = doc.printSettings.printers

      doc.printSettings.activePrinter = pr[5] //this is the correct printer number in the "pr" array

       

      The result of the code is the same > always my computer default printer. Photohop does not change the printer to the desired!!!

       

      What Am I missing?

       

      Thank you for the help

       

      Best Regards

      Gustavo.