Paste text from clipboard to textItem
Hi!
I want to paste text from windows clipboard to a new textItem
Pseudo code
var layers = app.activeDocument.artLayers;
var layer = layers.add();
layer.kind = LayerKind.TEXT;
var textItem = layer.textItem;
textItem.kind = TextType.PARAGRAPHTEXT;
textItem.size = 30;
textItem.position = [10, 10];
textItem.contents = activeDocument.paste();It is possible to Photoshop ?
This works at illustrator
var doc = app.activeDocument;
var _newTextFrame = doc.textFrames.add();
_newTextFrame.contents = 'Test';
_newTextFrame.textRange.select();
app.executeMenuCommand('paste');
