java - How to make After Effects quit after passing -r javascript from command line -
while passing javascript myscript.jsx
after effects want after effects exit on completion:
"c:\program files\adobe\adobe after effects cc\support files\afterfx" -r "c:\workspaces\myaescripts\myscript.jsx"
so last line in passed javascript myscript.jsx script is:
app.quit();
regardless of command after effects doesn't want quit. have tried include an
app.exitafterlaunchandeval=true;
but didn't help.
if pass same javascript using
aftereffects.exe -s "here same javascript ending with; app.quit();"
it exits (quits) beautifully.
i stay passing javascript (using -r
). there limit on how many characters can used on command line in windows. need able make after effects exit after finished running script passed -r c:/path/to/myjavascript.jsx
.
had same problem describing because project has changed , app waiting response on whether save or not.
legendary dan ebberts suggests adding:
app.project.close(closeoptions.do_not_save_changes); app.quit();
works me
Comments
Post a Comment