Loop through all .mif files in a given folder
Hello,
I am trying to write a script that does the following:
- Asks the user for a folder path.
- Loops through all of the .mif files in this folder.
- Opens, modifies, and saves each file.
I know how to do 1 and 3, but have no idea how to do #2. I have used the following code to get all files, but can't differentiate mif files.
var myFolder = Folder.selectDialog ("Select a folder");
var files = myFolder.getFiles();
I would appreciate help figuring this out.
Thank you,
Joseph
