• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Aerendercore won't execute my jsx using AppleScript

Explorer ,
Oct 08, 2021 Oct 08, 2021

Copy link to clipboard

Copied

Hello, on OSX I try to run a script without the After Effects GUI using AppleScript. But I get the error
aerendercore got an error: "/Users/jochem/Desktop/hello.jsx" doesn’t understand the “DoScriptFile” message.
 
I read here that this can be done succesfully:

 

 

tell application "aerendercore"
to activate
end tell

 

works, starts aerendercore
 

 

tell application "aerendercore"
DoScriptFile "/Users/jochem/Desktop/hello.jsx"
end tell

 

throws error: aerendercore got an error: "/Users/jochem/Desktop/hello.jsx" doesnt understand theDoScriptFilemessage.

 

 

tell application "Adobe After Effects 2020"
to DoScriptFile "/Users/jochem/Desktop/hello.jsx"
end tell

 

works, but just to check that the script is working and the syntax of the applescript is right.



the script hello.jsx to test is opening a file and saving it as another

 

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"));
}

 

 

Is it something obvious I miss here? Does my script need anything additional? Any pointer into the right direction is much appreciated.
Running AfterEffects 2020 on OSX 10.15.7
TOPICS
Error or problem , Scripting

Views

250

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 30, 2023 Jan 30, 2023

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines