Copy link to clipboard
Copied
I am trying to open an after effectrs project like so
app.open(aep);
where the variable aep is a file object that was aquired using getFiles on a folder object. I get the followeing error

how can the path not be valid...I never entered a path, I supplied a file object...this is on cs5
Mike
Copy link to clipboard
Copied
I just tried CS5 and did a quick getFiles test and it opened the aep just fine. Does the path it shows in the error actually match the location of the AEP? Also check to see if the AEP will open manually and is not corrupt.
var f = Folder.selectDialog("Choose Folder");
var gf = f.getFiles();
app.open(gf[0]); //Assumes the first file in the folder is an AEP
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more