main();
function main(){
var listFile = File("~/Desktop/Testpath.txt");
if(listFile == null) return;
listFile.open('r') ;
var listString = listFile.read();
listFile.close();
fileList = listString;
// "selectedPSD" Shuld Open "listString" Folder
var selectedPSD = File.openDialog("Select a PSD file to open" );
if (selectedPSD!=undefined) app.open(selectedPSD);
};
When using Defold, it automatically navigates to the last opened folder. However, I want to navigate to the path specified in my txt document. The path inside the txt document is:
/c/Program%20Files/Common%20Files
This will give me the folder fileList
.