Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects AE script to create project and save as… with a specific name without prompting

Tagged: 

  • AE script to create project and save as… with a specific name without prompting

    Posted by Stephane Levy on March 28, 2022 at 10:46 pm

    How can I create a project and save it with a specified path, in a script? Thanks.

    The following doesn’t do the trick:

    var my_project_path = '/abc/compositing.aep';
    var my_project_file = new File(my_project_path);

    my_new_project = app.newProject();

    app.project.save([my_project_file]);

    Walter Soyka replied 4 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Walter Soyka

    March 30, 2022 at 5:44 pm

    Your code is really close to working! You should remove the square brackets around “my_project_file” in the last line. Square brackets in JavaScript indicate arrays, and app.project.save() is expecting a File object.

    One other gotcha that could prevent this from working: the folder that you’re saving the file to must exist before you call app.project.save(). You validate the path and create any directories necessary in your code somewhere before the final line.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy