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...
What are you trying to save?
Perhaps an ExtendScript saveDialog() would do?
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)!