Copy link to clipboard
Copied
tell application "aerendercore"
to activate
end tell
tell application "aerendercore"
DoScriptFile "/Users/jochem/Desktop/hello.jsx"
end tell
tell application "Adobe After Effects 2020"
to DoScriptFile "/Users/jochem/Desktop/hello.jsx"
end tell
var my_file = new File("/Users/jochem/Desktop/hello.aep");
if (my_file.exists) {
var new_project = app.open(my_file);
app.project.save(File("/Users/jochem/Desktop/bye.aep"));
}
Copy link to clipboard
Copied
Using aerendercore is undocumented and unsupported, but some devs have found ways to use it, so you really just have to do trial and error to get stuff to work with it. In this case it probably doesn't recognize the DoScriptFile command like the regular ae does. Maybe try After Effects flags? ( I forget if they work on Mac or not ). Or mabye add a script to the AE Startup Scripts folder and check if the process is aerendercore somehow.