我嘗試創建一個對話框時有間歇性的成功。該代碼是有效的。對話框 - 沒有構造函數
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)。