Batch importing Word files into separate InDesign files

Hi,
I have what I though would be a fairly common question, but I can't seem to find any information about it in this forum or on the web.
I have a folder of Word files (over 100, which is why I don't want to do this manually) and one InDesign CS4 file that I'd like to use as a template (basically it's just a couple of pages with some threaded text boxes and a few images). I would like to write a script that will go through the Word files, one by one, and pull each into the text box in the InDesign file before saving it as a new copy (ideally with the same name as the Word file). So, if I have 100 Word files and one InDesign file in a folder, I'd like to be able to run a script and end up with 100 new InDesign files.
I think I can deal with importing and placing the text, and saving the file again. It's mostly the question of using javascript to go through a folder to find all of the filenames so that I can pass the name to the import file command that is confusing me.
Oh, I'm on a Mac with OS 10.6 and using InDesign CS4.
Thanks!

Before reinstalling (which is most often unneeded) it would be useful to test the way the app behave when it is used in an other User Account.
If it behave flawlessly, no need to reinstall it.
If it doesn't, it *_may be useful_* to reinstall it but it's not sure.
Nothing prove that the problem is really linked to the installed application's files.
It may be linked to a file built on the fly like preferences or fonts cache…
Yvan KOENIG (VALLAURIS, France) vendredi 3 décembre 2010 15:55:58

Similar Messages

  • Script for Place PDF file into a InDesign file

    Hi everyone, i need to import a PDF file into a InDesign document and in order to do this i used scripts found over  the net (e.g. Zanelli's script ecc.) but i tried this solution:
    function(){
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
        var myDocument, myPage;
        if(app.documents.length != 0){
            myDocument = app.activeDocument;
        else{
            alert("No document opened");
            exit();
         if (app.selection[0] == undefined) {
            alert("Select box");
            exit();
         } else {
                var myPDFFile = File.openDialog("Select PDF:");
                if((myPDFFile != "")&&(myPDFFile != null)){
                    myDocument.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
                    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.MILLIMETERS;
                    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;   
                    var myData = new Array;
                    myData[0] = app.selection[0].parentPage;
                    myData[1] = app.selection[0].geometricBounds;
                    myData[2] = app.selection[0];
                    myPlacePDF(myDocument, myData, myPDFFile);
        //FUNCTIONS
        function myPlacePDF(myDocument, myData, myPDFFile){
            var myPDFPage;
            var myPage = myData[0];
            var myGeometricBounds = myData[1].toString().split(",");
            app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
            var myCounter = 1;
            var myBreak = false;
            while(myBreak == false){
                if(myCounter > 1){
                    myPage = myDocument.pages.add(LocationOptions.after, myPage);
                 app.pdfPlacePreferences.pageNumber = myCounter;
                 myRectangle = myPage.rectangles.add(undefined, undefined, undefined, {geometricBounds:[myGeometricBounds[0],myGeometricBounds[1],myGeometricBounds[2],myGeometricBounds[3]]});
                 myRectangle.clearFrameFittingOptions();  
                 myRectangle.frameFittingOptions.fittingOnEmptyFrame = EmptyFrameFittingOptions.PROPORTIONALLY;
                 myRectangle.frameFittingOptions.autoFit = true;
                 myRectangle.frameFittingOptions.fittingAlignment = AnchorPoint.CENTER_ANCHOR;
                 myPDFPage = myRectangle.place(File(myPDFFile), false)[0];           
                 if(myCounter == 1){
                    var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
                else{
                    if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
                        myPage.remove();
                        myBreak = true;
                myCounter = myCounter + 1;
             myData[2].remove();  
    what i would is, before the script place every single page of PDF file in the document, determine if the same page of the Pdf file is vertical or horizontal, to make the right section for the page.
    Is it possible?
    Thank you

    Moved to scripting forum...

  • How do I import multiple Ai files into one Indesign File - whilst still keeping the Ai Files editable and up dateable for the one Indesign File?

    Hi All,
    Im relatively new to Ai and Indesign, and have been doing Uni work over Christmas, and have a rather urgent question thats stressing me out.
    I originally had many art boards in my ai file, but due to the number, I split these into single files to help my computer run better.
    Now I want to organise them into one document to save. From searching online Indesign can import these and save as one file, yet automatically update if the original ai file is updated. I would like to do this but just don't know how to do this correctly?
    Any help would be greatly appreciated.
    Im using CC Ai and indesign.
    Thanks in advance
    Sam

    Yes, effectively I would like to catalogue the files into one collection so i can save as one PDF and Print as one.:)
    I know I could save each AI as a pdf them then merge the pdf's together in acrobat, but I have nearly 100 files so would feel more comfortable seeing them all together before print / saving.
    My concern is that if I insert them in Ai, will the file resolution reduce? and will the ai still be editable and would it update the indesign file?
    Thanks for the quick reply

  • How to collect InDesign files into one InDesign file

    Hello,
    i need to collect a bunch of pages spread over a dozen of files into one file. The person who worked my source files found it convenient to separate a catalogue into chapters, making an individual file for each one of them. For some reason i need to make one single file of those chapters. How do i do this?
    Thanks in advance!

    You should ask in InDesign
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Convert an xml file into separate html files

    hi,
    i've a problem. i have an xml database. i want to create an html file from that database. but the condition is ,after reading a specified number of nodes say(100) it must write the rest in a new html file. how could i do this.
    please help.

    DOM in explorer or java dom will help u i n that

  • Place multiple pdfs into separate indesign and export to pdf again

    Ok I have a lot of PDFs that I need to place into indesign in their own file, then re-export back as a PDF again.
    Can anyone recommend a script for this if there is one? All the pdfs have different page counts etc. and I don't need to save the Indesign file.
    I just want to put all the PDFs into their own InDesign file and reexport to PDF again. They are all A4 sized PDFs, 210 x 297mm.
    Any help is appreciated.
    Thanks

    Thanks harbs
    I need to Save all the pdfs as RTF, and some of the PDFs have bad tags and won't allow me to save as RTF.
    I can batch process them in Acrobat to Print to PDF and that works for some, but not all the PDFs, it won't print some of them back to PDF.
    I have 100's of these "bad pdfs" and it would be great to be able to place them all into separate indesign files and export out as pdf again. It will be tedious to run the PDF importer and export for all of the files.
    I don't need to save the indesign file, just place and export the pdf again.
    Just looking to automate the process.

  • I want to import a MS Word Index into a .pdf file using Adobe Pro.  How do I do that?

    I want to import a MS Word Index into a .pdf file using Adobe Pro. It is for a book.  The book has been converted to a .pdf for printing, but it needs an Index for the last page of the book.  I tried to embed a new index (starting from scratch but no luck.  Any suggestions?  Thank you for your time.

    Now I want to search this "myArrayStrings.get(r)" in another file. How to do that?Store the returned String. Do the same thing you did to read the first file to read the second file (i.e. read it in line-by-line and store the lines in a list). Then check if that list contains the String you stored from the first list.
    E.g. (using your code):
    String name = myArrayStrings.get(r); // assuming r is initialized somewhere before this
    if ( otherList.contains( name ) ) { // assuming otherList is your second list
        // do something
    }

  • Importing word doc into InDesign

    I am trying to find the best way to get about 250 word pages into 250 InDesign pages.
    Currently I am assuming I have to copy/paste each page by hand. Is there a way to set page breaks in word and have them relate to pages in InDesign? I know that I can Find/Change attributes to batch/automatically apply styles to imported text. My major issue is that each InDesign page has a header, sub header, then 4 - 5 paragraphs with inline headers, so there is a lot of formatting.

    You have to put your custom frame on you master A page. Open your pages pallet. select the master page, create you custom frames on the master page. Select the first frame, click on the little blue box the bottom right the hover you curser over inside the  next frame and it will turn into a chain link icon. Click.
    This will link the two frames together over the left and right pages.
    Now double click on page one in your page pallet. You'll see the dotted frame which means that it on you master page. If you don't? then got to menu View>show frame edges.
    Next
    File> place select the word file
    your curser will load with the word file, hover your curser inside the dotted blue frame you just made on page 1 hold down your shift and click

  • How do I convert an InDesign file into a PDF file, it won't let me do it when I 'Save As'. Help??

    I need help with converting an InDesign file into a PDF file.
    I've tried looking into the program and seeing if i can do it, but it is not giving me the option.
    I need to be able to do this for work purposes.
    Please help.

    Try Exporting. There are also number of useful Export PDF presets that come with design.
    What do you want to do with the PDF?

  • Embedding SWF file into an Indesign document and later export as PDF

    Hi to everybody,
    I am searching now since 3 days for good solution of my problem. First I wanna tell you that the problem is not just to convert a swf-file into a pdf.  I did this many times with all animations, page flip and stuff.My situation is the following:
    I have varios catalogues with  more or less 12 pages each in an indesign format. Now I created an animated scroll down menu, which appears on an "index-page". On the menu I created buttons. One button for each catalogue. So the idea of the whole thing is to open a document and an index page appears where you have the animated menu and you choose the catalogue you wanna see. Until here it is quite easy. I created a swf file of each catalogue with my animations (as the special page turnover e.g.). So that I just need von Object in with I can load the different swf-files of these catalogues. I already did the process. I linked the buttons to the different swf files and so. So the problem is now when it comes to convert the whole thing into a PDF. Of course I convert it first to swf and then to PDF. After converting it to swf it works 100% fine, but in PDF not, suddenly the swf-files of the catalogues disappear.
    So the summary is, that I don't know how to embed swf files into an indesign document, creat buttons and interactions next to swf file, then save it to another swf, and then to a pdf without losing the first swf files within the pdf.
    Hope I made my self clear would be too nice if someone could help me or if someone may have a better idea of realizing the whole project.

    Jeffrey,
    Thank you for the answer. As you have written:
    I will also add that the ID's play mode contol [plays once] [repeat play] does not always control the file once in Acrobat.
    I presume you mean version of ID older than CS4 or version of Acrobat Reader older than 9.1
    It that is the case I will strongly recommend my visitors to upgrade to this version.
    I hope that would work.
    Thanks again.
    Peter

  • Is there a way that you can convert a pdf file into a InDesign 5.5 file

    I want to convert a pdf file into a InDesign CS5.5. Is there anyway you can do this, or is there any software which can be downloaded that achieves good results.

    Recosoft has a converting plugin:
    http://PDF to InDesign, Convert PDF to InDesign, PDF to InDesign converter

  • How to split column wise into separate flat files in ssis

    IN SSIS...
    1.---->I have a sales table country wise regions  like (india, usa, srilanka) ....
    india usa
    srilanka
    a b
    c
    d e
    f
    so i want output like in
    flat file1.txt has india               flat file2.txt has usa             flat file3.txt has srilanka
         a b
    c
         d e
    f
    2.----->i dont know how many regions in my table....dynamically split into separate flat files ....
     pls help me.....thank u

    I think what you can do is this
    1. Do a query based on UNPIVOT to get the data as rows instead of columns
    For that you can use a query like this
    IF OBJECT_ID('temp') IS NOT NULL DROP TABLE temp
    CREATE TABLE temp
    Country varchar(100),
    Val decimal(25,5)
    DECLARE @CountryList varchar(3000),@SQL varchar(max)
    SELECT @CountryList = STUFF((SELECT ',[' + Column_Name + ']' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '<SalesTableNameHere>' FOR XML PATH('')),1,1,'')
    SET @SQL= 'SELECT * FROM <SalesTableNameHere> t UNPIVOT (Val FOR Country IN (' + @CountryList + '))p'
    INSERT temp
    EXEC (@SQL)
    Once this is done you'll get data unpivoted to table
    Then you can use a execute sql task with query like above
    SELECT DISTINCT Country FROM Temp
    Use resultset option as full resultset and store the result to an object variable
    Then add a ForEach loop container with ADO enumerator and map to the object variable created above. Have variables inside loop to get inidvidual country values out.
    Inside loop place a data flow task. Use a variable to store source query , make EvaluateAsExpression true for it and set Expression as below
    "SELECT Val FROM Temp WHERE Country = " + @[User::LoopVariable]
    Where LoopVariable is variable created inside loop for getting iterated values
    Inside data flow task place a oledb source, choose option as  SQL command from variable and map to the above query variable.
    Link this to flat file destination create a flat file connection manager. Set a dynamic flat file connection using expression builder. Make it based on a variable and set variable to increment based on loop iteration
    The core logic looks similar to this
    http://visakhm.blogspot.ae/2013/09/exporting-sqlserver-data-to-multiple.html
    dynamic file naming can be seen here
    http://jahaines.blogspot.ae/2009/07/ssis-dynamically-naming-destination.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Split a CSV file into separate lines

    Hi,
    does anyone know how to split the contents of a .CSV file into separate files, one for each line?
    Sample "file.csv" contains:
    file.csv contains:
    file1,22,cat,33,cmyk,new,
    file2,22,dog,45,spot,old,
    file3,22,mouse,50,cmyk,new,
    need this output:
    cat.csv
    containing:
    file1,22,cat,33,cmyk,new,
    dog.csv
    containing:
    file2,22,dog,45,spot,old,
    mouse.csv
    containing:
    file3,22,mouse,50,cmyk,new,
    The naming of the files using a certain field would be nice but not critical, I would be happy to just have "file_1.csv, file_2.csv"

    Use:
    while read line        
    do        
        filename=$(echo $line | cut -f3 -d , ).csv
        echo $line > ~/Desktop/"$filename"        
    done < "$1"

  • How to import a picture into a Psd file using codes?

    I'm trying to import a picture into a psd file as a new layer, but i can't find the method of photoshop object in visual studio 2010 object browser. Is it possible to do this job using vb.net codes?
    Any suggestion will be gratuated!

    I beleive Michael L Hale stated that he used the ScriptListener to generate code for PhotoShop "menu File>Place".  Many things can not be done through in Photoshop Scripting through the Adobe's normal scripting methods Adobe provided for scripting.  However Adobe also supplied  the ScriptListener.8li plugin which when installed is a bit like the actions palette's action recorded without controls.  Everthing that can be recorded in Photoshop is written to two files on your desktop in script code one in Javascript the other VBS.  The Script code use an Action Manager Method so thing not posible with normal scripting methods can be use in scripts.  The only way to start and stop recording these two script files it to install ScriptListener.8li before you start Photoshop and to uninstall it after you exit Photoshop. Awarkward but better then nothing there is no logic just step, step, step like actions and the code is not all that readable.  However you can take that code and modify it to use vars to turn steps into javascript functions and whatever VBS uses.
    For example Place
    REM =======================================================
    DIM objApp
    SET objApp = CreateObject("Photoshop.Application")
    REM Use dialog mode 3 for show no dialogs
    DIM dialogMode
    dialogMode = 3
    DIM idPlc
    idPlc = objApp.CharIDToTypeID( "Plc " )
        DIM desc3
        SET desc3 = CreateObject( "Photoshop.ActionDescriptor" )
        DIM idnull
        idnull = objApp.CharIDToTypeID( "null" )
        Call desc3.PutPath( idnull, "D:\\Temp\\Portrait\\dsc6234.psd" )
        DIM idFTcs
        idFTcs = objApp.CharIDToTypeID( "FTcs" )
        DIM idQCSt
        idQCSt = objApp.CharIDToTypeID( "QCSt" )
        DIM idQcsa
        idQcsa = objApp.CharIDToTypeID( "Qcsa" )
        Call desc3.PutEnumerated( idFTcs, idQCSt, idQcsa )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
            DIM desc4
            SET desc4 = CreateObject( "Photoshop.ActionDescriptor" )
            DIM idHrzn
            idHrzn = objApp.CharIDToTypeID( "Hrzn" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idHrzn, idRlt, 0.000000 )
            DIM idVrtc
            idVrtc = objApp.CharIDToTypeID( "Vrtc" )
            DIM idRlt
            idRlt = objApp.CharIDToTypeID( "#Rlt" )
            Call desc4.PutUnitDouble( idVrtc, idRlt, 0.000000 )
        DIM idOfst
        idOfst = objApp.CharIDToTypeID( "Ofst" )
        Call desc3.PutObject( idOfst, idOfst, desc4 )
    Call objApp.ExecuteAction( idPlc, desc3, dialogMode )

  • How do i convert a word file into a pdf file?

    How do I convert a word document into a .pdf file?

    Hi wertheca,
    If you have Acrobat, (full version), you can convert a file to PDF by choosing File > Create > PDF from File. Then you choose your Word document, and click Open to convert the file to PDF.
    If you don't have Acrobat, you can use an Acrobat online services subscription to convert almost any format of file to a PDF with just a click or two. For more information, see Acrobat Plus, PDF Pack, Export PDF & More | Acrobat Document Solutions
    I hope this helps.
    Best,
    Sara

Maybe you are looking for

  • How to validate the input field

    Hi, I have a input form which is draged from input port of a RFC. in this input form i have two input fields nad submit button. on of this input field should always take the character values only. it should not take any numeric value and other input

  • How do I recover /lib in Solaris 10

    I am running a SunOS Release 5.10 Version Generic_120011-14 64-bit machine. I too (similar to an older post) did rm -rf /lib accidentally, any chance to recover or fix the issue? Already tried mounting the disk and "tar"ing and pipeline copying the f

  • How to find/create  SSO userid and password for oracle forms

    hi all, I have applied sso to one of my forms application by creating entries in the formsweb.cfg file. ssoMode=true ssoDynamicResourceCreate=true now single-sign-n has been applied to the forms application.What will be the user-id password that must

  • Books, Best Practice, CM Guides

    Hi, Can anybody point me towards a best practice, SCM Book or any other documentation that gives practical advice on how to set up and use SCM from a Config. Managers point of view - not a developers. The supplied documentation seems to be a bit thin

  • ABAP exercises Help

    Hi guys. I am a BW guy trying to get my feet wet in this ABAP world. I have access to R/3 IDES system and I need your help if someone have exercises on basic ABAP probgramming. I have access to online version of the book "learn abap in 21 days" but I