如何在扩展脚本中将#include 与面板类型window 一起使用?
How to use #include with panel type window in extendscript?
#targetengine main
#include "test.jsx"
var w = new Window("palette");
w.show();
..基本上,#include 似乎停止面板 window 启动,我正在做什么 wrong/how 来解决这个问题?
试试这个解决方法:
#targetengine main
var ip = new File($.fileName);
var scriptPath = ip.path;
function incScript(sn) {
eval('#includepath ' + scriptPath + '\n#include ' + sn);
}
incScript('test.jsx');
var w = new Window("palette");
w.show();
#targetengine main
#include "test.jsx"
var w = new Window("palette");
w.show();
..基本上,#include 似乎停止面板 window 启动,我正在做什么 wrong/how 来解决这个问题?
试试这个解决方法:
#targetengine main
var ip = new File($.fileName);
var scriptPath = ip.path;
function incScript(sn) {
eval('#includepath ' + scriptPath + '\n#include ' + sn);
}
incScript('test.jsx');
var w = new Window("palette");
w.show();