Code: Select all
app.exitAfterLaunchAndEval = true;
app.beginSuppressDialogs();
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.newProject();
var f = new File("\\\\server\\target\\108\\testComp.aep");
app.project.save(f);
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.quit();
Code: Select all
app.exitAfterLaunchAndEval = true;
app.beginSuppressDialogs();
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.newProject();
var comp = app.project.items.addComp("Comp1", 720, 486, 0.9, 20.0, 25.0);
var f = new File("\\\\server\\target\\108\\testComp.aep");
app.project.save(f);
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.quit();
Now, if I run this from the command line, normally, it completes just fine. But there is apparently something about running it as a service that causes it to hang for ever.
Anyone have any experiences like this and know how to fix it?
thanks,
jesse