I've got several files in a temporary folder. I can load them into Photoshop with scripting the following:
var sourceFolder = Folder("C:\\temp");
if (sourceFolder != null)
{
var fileList = sourceFolder.getFiles();
}
This is all good, but how do I ignore directories (such as C:\temp\waffles) that might also be in there also.
I understand that I could do a check for valid image extensions and then add them to a new filelist array and then load that. I don't think the search option TopDirectoryOnly is valid here.