myArtLayer.textItem in Photoshop DOM

the text item that is associated with the art layer. Only valid for art layers whose 'has text' is true
This property is read-only.

Property Type
TextItem