Can anyone help me out w/ a simple question?
I need a little help getting this to work. This is my first script so go easy on me! 😎
I looked at the forums but being that this is my first script it's still too difficult to decipher everything. In my document that's already open I want the script to make a text box of 50 pixels (for example) and insert my text inside it. Here's what I have...
// Create new text layer
var artLayerRef = activeDocument.artLayers.add()
artLayerRef.kind = LayerKind.TEXT
// Make text BOX on text layer
TextType.PARAGRAPHTEXT.width = 50
// Add text to text layer
var textItemRef = artLayerRef.textItemtextItemRef.contents = "My Text Here. My Text Here. My Text Here"// EndartLayerRef = nulltextItemRef = nullIt places the text but doesn't put it in a text box. It's just a line of text that extends off of the page. Anybody know what I can do?
Thanks you!