Copy link to clipboard
Copied
Hey everyone,
I wanted to share a bug that I've encountered while setting up a Media dialog for my CEP panel in Adobe Premiere Pro. I've been trying to allow users to select multiple media folders (directories) using the window.cep.fs.showOpenDialog function. According to this helpful post on the Adobe community forums (source: link), the following code snippet should work:
const result = window.cep.fs.showOpenDialog(true, true, 'Select Media Directories', '', null);
However, there is a limitation with this approach when it comes to selecting multiple folders. Although the first parameter (true) indicates that we are dealing with folders, the selection behavior does not allow for selecting multiple folders effectively.
When attempting to select multiple folders, clicking on one folder deselects the previously selected folder, making it impossible to choose multiple folders simultaneously. Additionally, other commonly used methods like dragging and using Shift/Ctrl clicking also do not work as expected in this scenario.
Moreover, another feature that works well for selecting files, the ability to remember the last path by passing an empty string as the fourth parameter, does not function reliably for selecting folders.
Thank you for your attention to this matter. Overall the File Dialog case looks better and different while the Directory case is old, missing features (perhaps unintentionally)
Have something to add?