Skip to main content
NeodymiumMan
New Participant
March 13, 2019
Answered

TextItem.position property does not exist

  • March 13, 2019
  • 1 reply
  • 595 views

I'm writing a script to export information about a document, and am encountering a strange error.

The script is inspecting an ArtLayer with a TextItem.

Below is a screenshot of the TextItem properties:

The hyphenation value is missing ("General Photoshop error...").

This item has a height value, but no width value ("General Photoshop error...").

The position property does not exist.

Does anyone know what might be causing these problems?

I can provide additional details if necessary to aid in troubleshooting.

The document is open in Photoshop CC release 20.0.4

Thanks!

This topic has been closed for replies.
Correct answer NeodymiumMan

It appears to be a problem in the debugger.

Stepping through the code and executing commands in the JavaScript Console (I'm using the ExtendScript Toolkit), the TextItem has a position property throughout the process. Some error is preventing the property from being inspected by the Data Browser, but I can work around that.

1 reply

Brainiac
March 13, 2019

I can show you the ordinary text in which there are practically no properties, even font. In this font is available.
This is a ordinary text layer in CS6.

NeodymiumMan
NeodymiumManAuthorCorrect answer
New Participant
March 13, 2019

It appears to be a problem in the debugger.

Stepping through the code and executing commands in the JavaScript Console (I'm using the ExtendScript Toolkit), the TextItem has a position property throughout the process. Some error is preventing the property from being inspected by the Data Browser, but I can work around that.