Copy link to clipboard
Copied
Hi there,
when I use the function "window.cep.fs.showOpenDialog" on a Windows system and try to open a file with the "File name:" drop down menu, the CEP panel crashes and reopens again.
I can also reproduce this behaviour with the sample given in the "CEP_HTML_Test_Extension / CEP HTML Test Modal Dialog / Native".
Is this a known bug and could it be fixed in a next version?
I couldn't tell for the bug but I still use the ExtendScript File.openDialog cause my libs historically use it and it's not big deal to have the info back in the CEP panel.
FWIW
Loic
Copy link to clipboard
Copied
I couldn't tell for the bug but I still use the ExtendScript File.openDialog cause my libs historically use it and it's not big deal to have the info back in the CEP panel.
FWIW
Loic
Copy link to clipboard
Copied
Many thanks for the tip.
That works perfect for me!
Copy link to clipboard
Copied
I have a similar issue. For me the file open dialog crashes on CC 2019 (both tested with After Effects and Premiere Pro) and works fine on CC 2018. The suggested workaround to use the jsx functions for files and folders works fine. Thanks for sharing this solution!
This is the exact code that is crashing for me
var allowMultiple = false;
var chooseDirectory = true;
var result = window.cep.fs.showOpenDialog(allowMultiple, chooseDirectory);
Copy link to clipboard
Copied
Just use
window.cep.fs.showOpenDialogEx()
with the same parameters and you should be good.