File/Folder access via script broken in AME on Windows 10
Copy link to clipboard
Copied
I have a script that adds files to the AME batch list from a user selected folder. I haven't used the script in a while and when I went to use it today I found the file/folder access is no longer functioning?! The same script works fine on Mac but not on Windows 10. I tried a bunch of different file and folder access methods hoping something might work but they all seem broken. also rolled back to AME 24 which definitely worked in the past but still no joy.
It seems that people were having a similar issue with Premiere a while back that was caused by a Windows update. I aslo thought there might be an equivalent preferences setting to "allow scripts to access files" as there is in Ae, but couldn't find anything. I really need this script going again asap... Hoping someone has some intel or workaround. thanks ../JL
Copy link to clipboard
Copied
Hi, would you be able to share your script so I can have look into it. And also would you mind telling me if you have Windows AMD or Intel?
Best regards,
-Sue
Copy link to clipboard
Copied
//-- file access testing AME - Nov 2024
var presetSourceFolder = Folder("F:/2022 - MU/Calib");
if (presetSourceFolder.exists) { var rootSourceFolder = presetSourceFolder.selectDlg("choose a source folder")}
else { var rootSourceFolder = Folder.selectDialog("choose a source folder")}
if(rootSourceFolder){
var myFileList = rootSourceFolder.getFiles();
$.writeln(myFileList.length + " files in " + rootSourceFolder.fullName)
} else {
$.writeln("doh!")
}
Copy link to clipboard
Copied
Hi,
good news,! I was able to test your script and indeed it is a bug and we have fix for it. I will let you know as soon as we have the fix in Beta. Possibly in AME Beta release 25.2x.
AMe 2023 works fine though, if you need inbetween some automation running.
Best regards,
Sue

