script not run when use cmd to call afterfx.exe
bat file like this:
"C:/Program Files/Adobe/Adobe After Effects CC 2017/Support Files/AfterFx.exe" -so -noui "var a = new File("D:/Adobe Script/temp.jsx") ; a.open(); alert(a.read());eval(a.read()); app.exitAfterLaunchAndEval = false;"
the temp.jsx will run success in after effects from menu:File->Scripts no matter the script include chinese string inside or not.
But it will fail to exec when use cmd to call afterfx.exe like the command above.
But in another computer it will run success,very strange.Both of the test computers are Win10 professional 64Bit
2
votes

-
Anonymous commented
the problem is the JSX file include chinese string or not.