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

How to access showSaveDialogEx()?

Engaged ,
Apr 19, 2017 Apr 19, 2017

Copy link to clipboard

Copied

Hi,

I guess this question is a bit silly, but I'm a silly person (some say ;-)).

I've been trying for some hours to make use of the showSaveDialogEx() function, but without success... can someone please point me in the right direction?

For me somtething like CSInterface.showSaveDialog(params) is not working, and var x = window.cep.fs.showSaveDialog(params) also doesn't lead anywhere.

I'm (hopefully) using the CSInterface.js shipped with the latest PPro panel, but this doesn't seem to be the breaking point...

Cheers.

TOPICS
SDK

Views

663

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

Engaged , Apr 20, 2017 Apr 20, 2017

My apologies, after cross-checking with the Native Functions HTML Test Panel ( Samples/CEP_HTML_Test_Extension at master · Adobe-CEP/Samples · GitHub ), which worked flawlessly, I revisited my code and now it's working.

Advice to anyone facing similar issues: The call should work with no arguments ( var result = window.cep.fs.showSaveDialogEx(); ). If you accidentally pass a string instead of an array as the third parameter (file extensions), the dialog won't be displayed.

Also, on Mac you should

...

Votes

Translate

Translate
Adobe Employee ,
Apr 20, 2017 Apr 20, 2017

Copy link to clipboard

Copied

What are you trying to save?

Perhaps an ExtendScript saveDialog() would do?

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
Engaged ,
Apr 20, 2017 Apr 20, 2017

Copy link to clipboard

Copied

LATEST

My apologies, after cross-checking with the Native Functions HTML Test Panel ( Samples/CEP_HTML_Test_Extension at master · Adobe-CEP/Samples · GitHub ), which worked flawlessly, I revisited my code and now it's working.

Advice to anyone facing similar issues: The call should work with no arguments ( var result = window.cep.fs.showSaveDialogEx(); ). If you accidentally pass a string instead of an array as the third parameter (file extensions), the dialog won't be displayed.

Also, on Mac you should provide absolute paths for the initial directory (/Users/[currentUser]/Desktop instead of ~/Desktop)!

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