Skip to main content
Inspiring
Mar 8, 2021 11:47 AM UTC
Answered

unable to filter files on File.openDialog on MacOs

hey, 

I'm calling this line:

 

 

 

File.openDialog(false, filterTypes, true)

 

 
where filterTypes is defined as:
 

 

var filterTypes = function (file) {
    file.name.match(/\.mp4$/i) || file.type == "MP4"
}

 

 

But no matter what I try, the Explorer does not filter any files. I also tried to pass a function that only return false, tried passing a string filter, but had no success.

 

I followed the docs:

"A filter that limits the types of files displayed in the dialog. In Windows,a filter expression such as "Javascript files:*.jsx;All files:*.*". 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."

 

thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
Bruce Bullis
Bruce BullisCorrect answer
Legend
Jul 19, 2023 7:48 PM UTC

No. 

It's unlikely that this ExtendScript-specific issue will get addressed; we're focusing our extensibility-related efforts on adding UXP extensibility support to PPro.

4 replies

Bruce Bullis
Legend
Mar 9, 2021 3:56 PM UTC

Yes, we're tracking that issue as DVAPR-4224808; no scheduled fix.

Translate
Participating Frequently
Jul 19, 2023 9:20 AM UTC

hi, is this issue fixed?

Translate
Bruce Bullis
Bruce BullisCorrect answer
Legend
Jul 19, 2023 7:48 PM UTC

No. 

It's unlikely that this ExtendScript-specific issue will get addressed; we're focusing our extensibility-related efforts on adding UXP extensibility support to PPro.

Translate
Jeff Bugbee
Community Expert
Community Expert
Mar 8, 2021 8:13 PM UTC

Moved this post from Premiere to Coding Corner

Translate