Skip to main content
Participant
January 10, 2025
Question

how to open an AE project file and run a script using CMD?

  • January 10, 2025
  • 1 reply
  • 372 views

Hello everyone, I encountered a problem. I want to use CMD to open my AE project file and run a script. So I wrote the following code:

 

“C:\Program Files\Adobe\Adobe After Effects 2025\Support Files\afterFX.exe” -project “C:\Users\kyle\Desktop\export.aep” -r “ C:\Users\kyle\Documents\20250110_02.jsx”

 

 

 

 But after running it, I found that it only opens the AE main interface, but does not open the project file, nor does it run the script. When I delete the part of the code that runs the script, the project file opens successfully. Is there a way to use CMD to open the project file and immediately run the script? I would appreciate any responses. Thank you.

1 reply

Legend
January 10, 2025

Hi!  What does 20250110_02.jsx actually do?  It sounds like the command is working, but that the script isn't working.  Do you have any log information writing to a file in the .jsx file?  If you don't have it already, you may want to insert `alert("My Script is Running")` somewhere in the code so you can verify it is actually being run?

 

If you don't want the After Effects GUI to come up, you can use the -noui flag in the command.