Skip to main content
Participant
November 24, 2016
Answered

CEP: showOpenDialog

  • November 24, 2016
  • 3 replies
  • 2922 views

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?

This topic has been closed for replies.
Correct answer Loic.Aigon

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

3 replies

Inspiring
January 7, 2020

Just use 

window.cep.fs.showOpenDialogEx()

with the same parameters and you should be good.

 

 

Mathias Moehl
Community Expert
Community Expert
October 8, 2019

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);
Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Loic.Aigon
Loic.AigonCorrect answer
Legend
November 24, 2016

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

SNAP_OMAuthor
Participant
November 25, 2016

Many thanks for the tip.

That works perfect for me!