Enter Text Editing mode with Script

  • 1
  • Question
  • Updated 4 years ago
Hello.

The Goal:
I want to edit the text from the keyboard without using the mouse.

Task:
I want to *enter* Text Editing mode in an active text layer (analogous to double-click on the icon [T] or click on the text box).

Question:
How to write a script using Adobe ExtendScript Toolkit CC and JavaScript, which will *enter* Text Editing mode.

Note:
Now I have to edit the text (without using the keyboard using scripts) looks like this:
---
var mytextcontents = app.activeDocument.activeLayer.name;
mytextcontents2 = prompt("Please enter text", mytextcontents);

if (mytextcontents2 != null) {
app.activeDocument.activeLayer.textItem.contents = mytextcontents2;
}
---
This method has disadvantages, so I'm looking for a solution of his problem.

Note2:
A related problem: http://feedback.photoshop.com/photosh...
Photo of Andrei Voronin

Andrei Voronin

  • 2 Posts
  • 0 Reply Likes
  • puzzled

Posted 4 years ago

  • 1

Be the first to post a reply!