【发布时间】:2017-01-26 15:38:56
【问题描述】:
我在尝试创建对话框时间歇性地成功。代码有效。
try
{
// Create an empty dialog window near the upper left of the screen
var dlg = new Window("dialog", "Alert Box Builder");
dlg.frameLocation = [100,100];
dlg.show();
}
catch(e)
{
alert(e);
}
有时它有效,有时我得到错误:
Error 22:Window does not have a constructor
我不知道为什么。删除 Photoshop 首选项和/或以管理员身份运行似乎不起作用(在 Win7 上运行 CC)。
【问题讨论】:
标签: javascript windows dialog photoshop-script