Palette window fails to show in CS4. But in CS5 created a session _PR and works fine.
var _mainWin = new Window('palette', 'Test Docs', [300,150,950,380]);
var _leftPane = _mainWin.add('panel', [10,10,320,190], "Doc(s)");
thanks in advance
I found the solution to this problem from Kahrel's ScriptUI 1-5.pdf. Thanks Kahrel.
In CS3 and CS4 you can use palettes only if
you run the script from the scripts panel. Once
run from there, you can run the script from
the ESTK. In CS5, palettes can be run from the
ESTK from the first run. These limitations are
Windows only (I think).
The #targetengine directive is not needed in
Illustrator and AfterEffects