bjennings's profile

2 Messages

 • 

90 Points

Wed, Sep 4, 2013 11:07 PM

Closed

Solved

Photoshop scripting: error when the text color is black (0,0,0).

Steps to reproduce:
1. Create a photoshop file with a text layer
2. Set the text to black (0,0,0)
2. Create a script to access the text layer like so: layer.textItem.color

Results:
Error 8800: General Photoshop error occurred

Expected Results:
The property returns a SolidColor object with RBG set to (0,0,0)

NOTE: This only occurs if the text is completely black. If it's any other color, it works as desired.

Official Solution

Adobe Administrator

 • 

16K Messages

 • 

296.7K Points

5 y ago

1 Message

 • 

60 Points

This issue still persists in Photoshop CC 2019 on Mac. Please advise

2 Messages

 • 

90 Points

8 y ago

Here is a page I found of someone else who ran in to this problem while looking for a solution. I'm using their try/catch solution, but thought the bug should be reported:
http://www.ps-scripts.com/bb/viewtopi...