ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Remove source after execution

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott McGee
Remove source after execution
on Aug 9, 2019 at 2:43:26 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];

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


Any suggestions?

Return to posts index

Scott McGee
Re: Remove source after execution
on Aug 9, 2019 at 4:21:38 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.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved