Filtering file types using Extendscript and the openDialogue() code on a mac for Adobe Premiere.
Hey everyone,
I'm trying to write some code to make a script for Adobe Premiere using Extendscript in VS code. Just like the title says, I'm trying to use the openDialogue() code, but I want to limit the files available for selection. I want to make it so that everything but CSV files have been greyed out. I looked up how to do this on a mac and in the PDF it says: "In Mac OS, a filter function that takes a File instance and returns true if the file should be included in the display, false if it should not." I would do this in the second parameter of the openDialogue code.
Could someone show me what this might look like?
