-
ExtendScript : Help with file selection
Hi everyone,
I’m starting to write scripts and now I’d like to be able to access files and folders on my computer (Windows) to import/replace footage in After Effects for instance.
I have trouble finding answers to these questions, maybe you can point me in the right direction?This basic import script command works only for files with specific paths and names :
var myFolder = "~/Desktop/";
app.project.importFile(new ImportOptions(File(myFolder + "test.jpg")));
– Is it possible to select the Xth file from a folder? (the 1st for instance)
– Is it possible to select a file with a certain word in its name? (like “FINAL”)
– Is it possible to select a random file of a specific format? (a JPG for instance)By selecting I mean, identifying the file I want to import or replace, …
Have a great day!