1 Reply Latest reply on Dec 5, 2012 6:02 AM by Vamitul

    importing multiple XML files

      I'm not sure if this is the right place to ask this question, but I haven't found a way to do it in CS3 (Mac), so I guess it's a scripting problem:
      I have a long list of XML-s (up to 1000) which I need to import into InDesign document, and it's a bit of a bore to do that manually. One solution would be to merge them in XML editor, but the problem is that each of the XMLs might change in time, and I wouldn't want to update the whole document then, but just one WML at a time.

      Is there by any chance a ready solution/script someone would share, or could someone help me out?


        • 1. Re: importing multiple XML files
          Vamitul Level 4

          maby someone lese might also need this, i know I did:

          function main(){
              var doc=app.activeDocument;
              var fldr;
              if (fldr= new Folder(doc.fullName.path).selectDlg ()){;
              var files=fldr.getFiles ("*.xml");
              for (var i=0; i<files.length;i++){
              alert("Done!\nYou can go outside and play now!");