app.project.rootFolder; // not visible, its name is “Root”
I think that what you called “footage” is the folder you are looking for (no need of a search function),
and its parentFolder is the rootFolder:
var myFile = File(“~/Desktop/Bowls.aep”);
var io = new ImportOptions(myFile);
var footage;
if (io.canImportAs(ImportAsType.PROJECT)){
io.importAs = ImportAsType.PROJECT;
footage = app.project.importFile(io);
alert(“parentFolder: ” + footage.parentFolder.name);
alert(“is root folder: ” + (footage.parentFolder===app.project.rootFolder));
alert(“footage is instance of: ” + footage.constructor.name);
};
Xavier.