Skip to main content
Inspiring
March 8, 2021
Answered

unable to filter files on File.openDialog on MacOs

  • March 8, 2021
  • 2 replies
  • 678 views

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 has been closed for replies.
Correct answer Bruce Bullis

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.

2 replies

Bruce Bullis
Community Manager
Community Manager
March 9, 2021

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

Participating Frequently
July 19, 2023

hi, is this issue fixed?

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
July 19, 2023

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.

Jeff Bugbee
Community Expert
Community Expert
March 8, 2021

Moved this post from Premiere to Coding Corner