Article View: adobe.scripting.indesign
Article #659Open File Dialog Box (JS)
From: Justin_Monsees
Date: Fri, 06 Mar 2009 04:28
Date: Fri, 06 Mar 2009 04:28
9 lines
1014 bytes
1014 bytes
I know that in order to open a file dialog box and get a file I have to use this code:
myFile = File(File.openDialog("Import XML","XML Files: *.xml"))
This is what I use to open XML files. Now I want to be able to open a folder based on the label of the textFrame. I can get the label and build the file path. How can I open a dialog box that already points to a specific folder? Also, how can I check with the script if there are files within the folder?
Thanks,
Justin M.
Technical Details
Message-ID:
<59b823e3.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,f6d6351cc420ac6,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Justin_Monsees@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Open File Dialog Box (JS) Message-ID: <59b823e3.-1@webcrossing.la2eafNXanI> Date: Thu, 5 Mar 2009 20:28:55 -0800 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit