I tried this. But it doesn't work.
app.project.toolType = ToolType.Tool_TextH;
app.project.layers.addText('test');
I was wondering about the executeCommand function. And I found vertical command 3066. But this command also doesn't work.
Please tell me another way.