The dreaded 8800 on print()

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Tio Loco

The dreaded 8800 on print()

Post by Tio Loco »

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?

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Tio Loco

The dreaded 8800 on print()

Post by Tio Loco »

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?
Paul MR

The dreaded 8800 on print()

Post by Paul MR »

I wonder is you have tried...

Code: Select allactiveDocument.printOneCopy();
Tio Loco

The dreaded 8800 on print()

Post by Tio Loco »

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.
Paul MR

The dreaded 8800 on print()

Post by Paul MR »

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()

Post by Tio Loco »

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?
Paul MR

The dreaded 8800 on print()

Post by Paul MR »

activeDocument.print(); fails with the same error you are getting.
Tio Loco

The dreaded 8800 on print()

Post by Tio Loco »

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.