Skip to main content
Inspiring
September 4, 2013

P: Scripting - error when the text color is black (0,0,0).

  • September 4, 2013
  • 3 replies
  • 234 views

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.

This topic has been closed for replies.

3 replies

Inspiring
April 27, 2019
This issue still persists in Photoshop CC 2019 on Mac. Please advise
Legend
June 21, 2016
Inspiring
September 4, 2013
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...