Article View: adobe.scripting.indesign
Article #2069Re: Access Standard InDesign Menu
From: loic_aigon
Date: Wed, 07 Jan 2009 21:18
Date: Wed, 07 Jan 2009 21:18
14 lines
1240 bytes
1240 bytes
Open files can be get at least by two ways.
1. Open files regarding to an array of files.
var myFiles = [File(".../file1.indd"),File(".../file2.indd"),etc.]
for(i=0; i<myFiles.length; i++) { app.open(myFilesArr[i]); }
2. Open files located in a folder
var myFolder = Folder.selectDialog("Choose a folder");
var myFiles = myFolder.getFiles ("Indesign: *.indd") //Always forget how to express filters :-%
for(i=0; i<myFiles.length; i++) { app.open(myFilesArr[i]); }
For me you have a confusion between xml and datamerge. For me you use one of both techniques but not twice at a time. But you may know what you want to do.
Loic
Technical Details
Message-ID:
<59b773b7.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b773b7.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c4b48153d65cf6b0 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: loic_aigon <loic_aigon@yahoo.fr> Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Access Standard InDesign Menu Message-ID: <59b773b7.0@webcrossing.la2eafNXanI> Date: Wed, 7 Jan 2009 13:18:02 -0800 References: <59b773b7.-1@webcrossing.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit