Cannot run AME script while AME is open
As a sort of follow up to my last question, I am trying to run an AME script from After Effects. I'm able to succesfully do this by constructing my command, writing it to a file, and running 'system.callSystem();'
Something like this:
var cmd = '"/Path/To/AME" --console es.processFile "/Path/To/TMP/File"';
var result = system.callSystem(cmd);
This works successfully but only if AME is closed when the script is run and provided that I close AME again ('app.exit()') at the end of my script.
If AME is open when the script is run I get several errors (which I'll paste below) and if I don't exit the app at the end of my script, then After Effects hangs (or my terminal window if I run it directly) indefinitely.
Does anyone know how I can sort out this issue so that I can run the script even if AME is already open and leave it open after the script is finished processing?
Thank you!
Adam
ps here are the error messages I'm getting:
objc[98067]: Class CertificateVerifier is implemented in both /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/Frameworks/Registration.framework/Versions/A/Registration (0x142c608f0) and /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/MacOS/Adobe Media Encoder 2024 (0x107422e20). One of the two will be used. Which one is undefined.
objc[98067]: Class HttpRequestDelegate is implemented in both /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/Frameworks/Registration.framework/Versions/A/Registration (0x142c60940) and /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/MacOS/Adobe Media Encoder 2024 (0x107422e70). One of the two will be used. Which one is undefined.
objc[98067]: Class CustomWKWebView is implemented in both /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/Frameworks/Registration.framework/Versions/A/Registration (0x142c60968) and /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/MacOS/Adobe Media Encoder 2024 (0x107422e98). One of the two will be used. Which one is undefined.
objc[98067]: Class NativeBrowser is implemented in both /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/Frameworks/Registration.framework/Versions/A/Registration (0x142c609b8) and /Applications/Adobe Media Encoder 2024/Adobe Media Encoder 2024.app/Contents/MacOS/Adobe Media Encoder 2024 (0x107422ee8). One of the two will be used. Which one is undefined.
