-
1. Re: Open dialog with a specific path with an html panel.
Matias Kiviniemi Jun 20, 2014 2:10 PM (in response to Sebastien Piconnier)According to Javascript Tools Guide, openDlg is only method for a file object, not a folder. I.e. it opens a dialog to open files in the parent folder of the file. I.e. you'd have to first search any one file in the dir. Alternatively there is File.openDialog that doesn't take initial directory. Also note filter is Windows only and OSX had a filter function parameter..
You way would be more logical though
-
2. Re: Open dialog with a specific path with an html panel.
Sebastien Piconnier Jun 20, 2014 11:13 PM (in response to Matias Kiviniemi)Thank for your help but I know that . The only thing I don't understand is why the open dialog box does not display now when i'm using this code in an html panel. It perfectly work in a Configurator panel.
-
3. Re: Open dialog with a specific path with an html panel.
Matias Kiviniemi Jun 20, 2014 11:45 PM (in response to Sebastien Piconnier)Well, it's a different technology stack, different engine running the Javascript. It could be that Configurator stack (~Extendscript) did have an (undocumented) extension of folder.openDlg(), but the Chrome based Javascript engine does not. I'd try to migrate to using the file.openDlg() and see if that works.
-
4. Re: Open dialog with a specific path with an html panel.
Sebastien Piconnier Jun 21, 2014 12:07 PM (in response to Matias Kiviniemi)Well, Configurator was a wonderful tools to make extensions, now if you're not a developer, it is very difficult to migrate all your panels :-(
I will like a new configurator for HTML panels. I think a lot of extensions will disappear from Adobe Add-ons , perhaps mine too :-(
-
5. Re: Open dialog with a specific path with an html panel.
Matias Kiviniemi Jun 21, 2014 10:50 PM (in response to Sebastien Piconnier)I agree. Even though "doing HTML" is pretty simple and could be done in an UI, the new tool chain is definitely not. I.e. there's no similar integrated pipeline and getting the thing installed & running requires much more than previously. What I ended up doing is using the HTML panes in the same way as Configurator panels: just run jsxbin-files. This way you can develop & debug the Javascript in Extendedscript Toolkit, which seems much more easily controlled environment. In the jsx I use app.get/putCustomOptions to persist/share data between scripts.
-
6. Re: Open dialog with a specific path with an html panel.
Sebastien Piconnier Jun 22, 2014 1:31 AM (in response to Matias Kiviniemi)I think the problem is with var strEdgeFXFolder = new Folder(assetsPath + "/Edges%20Collections/");
I have modified the line into var strEdgeFXFolder = new Folder(Folder.commonFiles.fsName + "/Adobe/"); and it opens now the open dialog box. Now I need to know where Extensions for Photoshoop CC (2014) are located by default with this version and what is the code I think.

