Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Remove source after execution

  • Remove source after execution

    Posted by Scott Mcgee on August 9, 2019 at 2:43 pm

    I have my script to import the first item from my folder.
    Once it has been imported another portion from the script is executed, after exporting, I want it to then remove the file from the folder.

    var myImportOptions = new ImportOptions();
    var myFolder = Folder(“Folder path”);
    var myFiles = myFolder.getFiles();

    myImportOptions.file = myFiles[0];
    app.project.importFile(myImportOptions);

    some forums suggest below, but it’s not removing my file.

    myFiles[0].remove()

    Any suggestions?

    Scott Mcgee replied 6 years, 9 months ago 1 Member · 1 Reply
  • 1 Reply
  • Scott Mcgee

    August 9, 2019 at 4:21 pm

    This was my issue

    I forgot to check this box.

    Because I use alerts to flag errors I only came about this, when I removed the alert and it finally told me I needed to check this box.

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