• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CEP: showOpenDialog

New Here ,
Nov 24, 2016 Nov 24, 2016

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?

TOPICS
Scripting

Views

2.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Nov 24, 2016 Nov 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

Votes

Translate

Translate
People's Champ ,
Nov 24, 2016 Nov 24, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 25, 2016 Nov 25, 2016

Copy link to clipboard

Copied

Many thanks for the tip.

That works perfect for me!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 08, 2019 Oct 08, 2019

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);
Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 07, 2020 Jan 07, 2020

Copy link to clipboard

Copied

LATEST

Just use 

window.cep.fs.showOpenDialogEx()

with the same parameters and you should be good.

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines