-
Extendscript .getFiles function is undefined
Scripting newbie here, I’m trying to figure out a way of creating an array and populating it with all the files within a user specified folder.
This is what I got:
var myFolder = Folder.selectDialog (“Select a folder”);
var allfiles = myFolder.getFiles();however it just gives me an error telling me that myFolder.getFiles is undefined.
I’ve been looking around online and everyone seems to be using this function for the same thing i’m trying to achieve.Would appreciate any help thank you.