myFile = File(myFolder + '/*AA*.indb');----> WRONG!
myFile = myFolder.getFiles('*AA*.indb'); ---> should work
Thanks, your answer
I found another way.
var myFolder = Folder.selectDialog('Indd Folder Choice');
if (myFolder == null) exit();
var myBooklist = myFolder.getFiles('*.indb');
var myBook = myBooklist;
Vamitul's answer is correct, yes your is another way of doing it.
You could probably find a lot more idiotic ways of doing it if you try hard.