Skip to main content
Participant
January 10, 2023
Answered

Filtering file types using Extendscript and the openDialogue() code on a mac for Adobe Premiere.

  • January 10, 2023
  • 1 reply
  • 492 views

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?

This topic has been closed for replies.
Correct answer Bruce Bullis

I found some relevant sample code, in the ESTK repo, although you'll probably want to remove the first line that checks whether the incoming file is a Folder. 🙂

1 reply

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
January 10, 2023

I found some relevant sample code, in the ESTK repo, although you'll probably want to remove the first line that checks whether the incoming file is a Folder. 🙂

Participant
January 15, 2023

Thanks! This is pretty exactly what I'm looking for!