Hi all, just getting started in scripting PS, but I've encountered a stumper.
I have a script that reads and increments a serial number in a text layer and sends the file to a printer. Nothing fancy there. It works fine in CS3/Win7, but in CS6/WIN7 it throws the dreaded 8800 error. Even a stripped down version fails as well:
... - Could not complete the command because of a program error.
line 5-> prt_docRef.print()
Here's the code:
Code: Select allvar prt_fileRef = File("c:/laser/dp.100.ep_bottom.psd");
var prt_docRef = app.open(prt_fileRef);
activeDocument = prt_docRef;
prt_docRef.print();
prt_docRef.close();
I've spent hours searching this forum and elsewhere, and cannot find a clue, or even a sample script that uses the print command. There's nothing in the Adobe documentation referencing this other than the command parameters, which are all optional...
If there ever was a guy in need of help, it's me. Anybody?
The dreaded 8800 on print()
-
Tio Loco
The dreaded 8800 on print()
Update, I discovered that it's not just WIN, but happens in CS6 MAC as well, so it's definitely a CS6 thing. I'm not really wild about telling them that they have to install CS3 on a new laptop just to get this to work.
Nobody has a script that calls the print dialog?
Nobody has a script that calls the print dialog?
-
Paul MR
The dreaded 8800 on print()
I wonder is you have tried...
Code: Select allactiveDocument.printOneCopy();
Code: Select allactiveDocument.printOneCopy();
-
Tio Loco
The dreaded 8800 on print()
I can try it tomorrow when I have access to the CS6 machine.
Does that bypass the print dialog? I have to have the print dialog as we are sending it to a laser etcher. The printer driver for that calls the software for the laser etcher.
Does that bypass the print dialog? I have to have the print dialog as we are sending it to a laser etcher. The printer driver for that calls the software for the laser etcher.
-
Paul MR
The dreaded 8800 on print()
I just tried it with my WiFi laser printer and there was no dialog, it just printed. Using Photoshop CS6 with Windows 7.
-
Tio Loco
The dreaded 8800 on print()
Paul MR wrote:I just tried it with my WiFi laser printer and there was no dialog, it just printed. Using Photoshop CS6 with Windows 7.
Thanks, I will see what happens. The printer driver might call the etcher software without any interaction. Did you perchance try the print() command to see if you get the same error?
Thanks, I will see what happens. The printer driver might call the etcher software without any interaction. Did you perchance try the print() command to see if you get the same error?
-
Paul MR
The dreaded 8800 on print()
activeDocument.print(); fails with the same error you are getting.
-
Tio Loco
The dreaded 8800 on print()
printOneCopy() works! The printer driver does call the software for the laser etcher without any user interaction. Thanks so much for your help!
Now if want to work miracles, you could get Adobe to update the JS documentation.
Now if want to work miracles, you could get Adobe to update the JS documentation.