Code: Select all
{
var imgDir = ("d:");
var newAmt = 1;
if (!app.project) { app.newProject(); }
var myItemCollection = app.project.items;
var myComp = app.project.activeItem;
var myProperty;
function processFolder(theFolder)
{
for (var j=4; j < 5; j++)
{
var importOpts = new ImportOptions( new File(theFolder + "aff"+".mp"+j) );
var importImg = app.project.importFile (importOpts);
var myImg = myComp.layers.add(importImg, );
}
}
processFolder(imgDir);
}