Exporting text.doc from an InDesign file

Hello,
I have about 400 pages, each with one textframe that is linked throughout all 400 pages. Each page also has a separate 'header' textframe that isn't linked. I need to export just the text from both of these textframes, but the headers need to somehow be "inserted" between each linked textframe on each page.
I can easily copy/paste the entire linked textframe, it's getting the headers in there too that is the issue. Make sense?

Hi,
I think this is a good job for a script.
I.e. like this:
myDoc = app.activeDocument;
myTextArr = new Array();
var myTextStory = currHead = currText = "";
for (k=0; k<myDoc.pages.length;k++) {
    currHead = currText = "";
    for (f = 0; f<myDoc.pages[k].textFrames.length; f++)
        switch (isLinked( myDoc.pages[k].textFrames[f] ) ) {
            case true: {currText = myDoc.pages[k].textFrames[f].contents; break;}
            case false: {currHead = myDoc.pages[k].textFrames[f].contents; break;}
            default: {currHead = currText = ""; break;}
    if(currHead!=="") myTextArr.push(currHead);
    if(currText!=="") myTextArr.push(currText);
myTextStory = myTextArr.join("\r");
myFolder = "~/Desktop"               // You can edit this
ExportFile = new File(myFolder + "/" + "InDesign_Export.txt");          // You can edit this
ExportFile.open("w",undefined, undefined);
ExportFile.write(myTextStory);
ExportFile.close();
function isLinked(myTF){
    if(!myTF.isValid) return -1;
    if(myTF.startTextFrame == myTF.endTextFrame) return false;
    else return true;
It should be saved as .jsx file and placed in your Script Panel folder.
To run - double click in InDesign script panel.
hope...

Similar Messages

  • Batch export text from multiple Indesign files, applying em and strong tags

    Hi there,
    I am struggling for a while now with the following workflow:
    batch exporting all text (text only) as plain text, from multiple Indesign files, applying <em> and <strong> for all the bold and italics (for instance: Molluptas verion <strong>nossum</strong> idist <em>doluptatet</em> maiorerum quiaspienit, cum erferiosapis eos expe nonsequas verumquae dolor sim eos doluptatiur autet lab idicili beatum deliquat).
    Properly tagging the styles, will be too time consuming, as these documents are as old as 1998, have inconsistent untagged styles; it will mean to manually open up each file, assign tags for all styles (not to mention that might be some local overwrites).
    This task is necessary to have all the archive, available on wordpress website.
    Any feedback would be much appreciated it.
    Thanks.

    There may well be a script or you may have pay someone to write it. All I can tell you is that any text not mapped to a style will be a mess in the HTML code.
    Can’t comment on Quark files. I have no clue what they’re capable of.
    Bob

  • How do I keep my text formating when pasting from other InDesign files?

    I'm trying to post charts from one InDesign file to another.  The chart I'm trying to paste has hand-made fractions in them. The font is superscript and baseline shifted. When I paste it into a new document, the text loses all that formatting. It seems like a preferance thing, but I can't find it.

    Even if Placing an .indd file retains the formatting, it's a non-starter. The reason I needed to paste the formatted text in the first place was to create a variation of the ad for a different purpose, so I need to be able to edit the text - something you can't do with a placed file. 
    For instance, I created an ad for an exhibit that includes the date of the reception and the address of the museum, etc. Then I want to create a poster for the wall of the exhibit, so I create a new document with different specs. Placing the ad copy would serve no use since I have to edit the copy (removing the address and reception date) and then readjust the emphasis of each line slightly.
    Then I created another new file (RGB, tall and skinny) for the email invite. So I needed to copy the ad copy  and again put emphasis in different places.
    I hope you can see that there is a real need to be able to copy and paste manually formatted text from one document to another while retaining the special formatting. In these kinds of jobs there is no need to create a new style for each line of text since each line is tweaked and tweaked to death.
    This copy & paste behavior is not intuitive and is obviously causing problems for users for no  reason whatsoever except that "Adobe knows best". Why can't Adobe trust that I knew what I was going when I applied the formatting in the first place?
    Considering how easy it it to remove formatting and revert to the original style, I would say the nod should be given to retaining formatting upon pasting. Both Word and Quark do this, so it's not anything unusual. Or give us the choice with a Paste Special dialog. But saying this behavior is "as designed" or suggesting you need to place a file or PDF, is not the solution.

  • Elearning suite to Learning Management System (LMS) - how-to from an InDesign file?

    We need to be able to export InDesign files to a portable SCORM format that could be loaded into various Learning Management Systems (LMS) – however, it is not obvious how we would do this? We need to publish our documents both in a book\PDF format and to various LMS systems such as Blackboard, Moodle, Angel, Desire2Learn, etc.
    What am I trying to accomplish? Many of our College and University clients use Learning Management Systems (LMS).  SCORM is a standardized interchange format used to provide internet ready information (e-book data, test questions, etc.) to any LMS systems. We need to export formatted InDesign documents – which for us are our Lab Manual (book) publications which include: text, graphics, pictures, etc.
    Adobe advertises SCORM compatibility as part of its e-learning suite: http://help.adobe.com/en_US/elearningsuite/els/extensions/WSD40882CF-6 C5C-46c0-8D51-273830EB036B.html --- however, I cannot find anyone who can tell me how to get there from InDesign.
    In addition, I find it very frustrating that after many calls to Adobe sales and technical staff that I can't find anyone who can help me with the details of how to get from InDesign to Adobe's "SCORM Packager"  See: http://blogs.adobe.com/captivate/2009/01/scorm_packager.html which I believe is a part of the e-learning suite.
    Is it possible to find a high level technical resource within Adobe that I could talk to who could help me with this issue --- we need to test the ability to produce SCORM compatible files from our InDesign files before we can make a purchase decision.

    Adobe's Multi SCORM Packaging tool is designed to take existing single SCORM packages (in zip file format) and merge them into a multi SCORM package with a rewritten imsmanifest.xml file at the root level to tell the LMS what the package contains.  This allows the LMS to build the array of links that its SCORM player requires to allow the course user to navigate from one module to another.
    So if InDesign is not currently capable of creating even a single SCO SCORM package, the Adobe Multi-SCORM Packaging tool is not going to be much use to you.
    In reality, the Adobe tool is quite limited in functionality.  It's more designed as an add-on for Captivate to allow multi-SCORM courses to be created. Your best bet would probably be to investigate other SCORM packaging tools such as RELOAD that allow you to take content created elsewhere and add them to a SCORM package as resources.
    You may need to export your InDesign content as PDF files and have these set up as individual resources or assets in the SCORM package.
    However, for any of this to work with an LMS is going to require the final package to have a SCORM API (done with JavaScript) so that user interaction with the individual components of the course is relayed back to the LMS via JavaScript variables.  Packaging tools such as RELOAD may be able to do this with some types of content (e.g. HTML) but I don't know if InDesign output is going to be compatible with this approach.
    Have you designed your InDesign course content with interactivity in mind, or is it just straight content delivered in a documentation format?

  • Move group of pages from one InDesign file to another InDesign File using VB.Script

    Dear team,
    I am trying to move group of InDesign pages from one indesign file to another indesign file using vb.script.
    I have written the code like
    Dim Pages=IndDoc.Pages
    Dim Mytype=TypeName(Pages)
    Pages.Move(InDesign.idLocationOptions.idBefore,IndDoc1.Pages.LastItem)
    but it is giving an error as method Move is not a member of Pages 
    please give mme the solution to move the Multiple pages or a group of page from one Indd to another Indd.

    Hey Peter, if I wan to move several page that part of Auto Flow text, I checked the "delete page after moving" but the content still there, not deleted.
    Is there any way to delete it automatically, just to make sure I have moved that autoflowed page?

  • How can I export text messages from Companion?

    Dear all!
    I have a number of old text messages which I would like to keep for the future. They are already erased from my tiny phone memory (I have an old SE "Cybershot"). So, right now they are only accessible via PC Companion. But: This only works if I connect my phone. If I launch the "text message synchronizing menu", the software asks me to plug in a phone, if I cancel, I'm back to main screen. However, I don't want to keep my old phone lying around for the next years just in case I want to browse through my old text messages some day.
    Is there a way to export my these old messages or can I find them on my hard drive?
    This might have been covered in some of the other threads, but I couldn't find a relevant post. I understand that "my Phone Explorer" allows to export text messages from the phone, but since mine are somehow hidden inside Companion, I am at a loss.
    Thanks for your help!
    Jan

    Ahem, yes, that works   Didn't think of this possibility at all...
    You can save indivual messages or put all the highlighted ones into one single text document. It's not very comfortable to read, but it certainly does the job!
    Thank you very much!

  • Is there a way to copy text boxes from one pdf file to a different one?

    is there a way to copy text boxes from one pdf file to a different one in Acrobat 11?

    Yes. In Form Edit mode select the field(s), press Ctrl+C and then move to
    the other file and press Ctrl+V.

  • My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    Are your  links up to date? What settings did you use?

  • How to export the data from an excel file to Oracle database by using macro

    Hi,
    I want to export data from an excel file into Oracle database.There is one method that by creating the macros through excel we are able to do this.
    can anybody please send me the code to create macros?
    Thanks in advance.
    Regards,
    Surendra.V

    There are several resources on the web, but you could start analyzing if this code fits your needs --> VBA Macro for Excel 2003 Export of Text File with Comma and Quote Delimiters.
    ~ Madrid

  • I can't do anything with the text boxes in my InDesign file.

    I consider myself pretty good with InDesign. But, right now, I'm totally flummoxed. I've just spent two hours designing a newsletter front and inside front page. I've filled the two text boxes with text that I stole from a Word file. But, now, I can't do anything in those text boxes. I click and nothing happens. Nothing highlights. The frame isn't locked. I don't know what to do. I'm kind of freaked out that InDesign can do this to me.

    Check for locked Layers
    Object (menu) > Unlock All on Spread
    Verify Live Page vs Master Page (You might have worked on the Master (?)

  • Exporting text only from specific paragraph style

    Hi,
    Is there a way to export text from Indesign to txt or preferably Excel from specific paragraph style ? I am trying to export only item numbers and prices to excel spread sheet so I can compare against original excel spreadsheet.
    Thank you !

    Not built in, no. But you could do this:
    Create a new paragraph style called "Delete Me". In the paragraph styles
    palette, select all the paragraph styles you're NOT interested in.
    Delete them in one go, and replace them with "Delete Me."
    Now, in the find/replace box, search for "Delete Me" and replace with
    nothing. This will cause all the paragraphs that have the "Delete Me"
    style to be deleted.
    Now what remains in your document is only the text that you're
    interested in.
    Ariel

  • Creating an illustrator file from an indesign file

    Is there any way of exporting or turning an indesign file into an illustrator file. Not by exporting as a PDF or an EPS and then opening that in illustrator. I mean that in one step (through a third party plug-in in indesign maybe) an indesign file can become an actual illustrator file, headers and file icon looks like an illustrator file etc?
    Thanks, Tim

    I'll try and clarify as best I can. My hands are a bit tied with confidentiality rules at my company. I guess the best way to put this is we have an automated workflow using indesign server. We want to supply some of our products as actual illustrator files but all our assets are indesign files.

  • Can an InDesign file be interactive? (And I don't mean output from an InDesign file.)

    Is it possible to have an element in an INDD file trigger another action inside the INDD file, without exporting the original file to an interactive PDF or anything else?
    For example, I would like to create a "go to the next page" button in an InDesign file so that anyone else who opens the file within InDesign can click on the button and be taken to the next page of the InDesign file.
    For various reasons that aren't relevant to this discussion, I do not want to distribute the file as a PDF or anything other than INDD.
    Will a script do the job?
    I'm using InDesign CS6 on a Mac.
    Thanks for any help you can give!

    A button to go to the next page: bottom left corner of your main window ... (Granted, it's small enough to miss.)

  • Audio is missing when I export longer mp4s from After Effects File via AME. Can you help?

    I’m using After Effects to colour correct and add some titles to long .mov files. (typically 45 mins to 1.5 hours in length).
    I am then rendering out to the Vimeo 720 25 preset (.mp4s with h.264) using AME.
    The problem occurs when I try to render out larger compositions (anything over an hour).
    I start to get audio issues, such as no audio, glitchy audio or audio that only starts after 40 minutes for example.
    The shorter compositions work fine. And RAM previews always work fine.
    (I’m using Creative Cloud on an iMac running Mountain Lion.)
    Has anybody experienced this bug, or know a way to fix it?
    Thanks

    Hi,
    I tried to reproduce this issue by adding a shape and a table in Publisher, export it as an index.htm file, copy and paste the HTML code which in the <head>
    tag and <body> tag only.
    It turns out that the original design is gone.
    When digging into the HTML code, I found that the HTML code from Publisher might not be compatible with SharePoint page.
    For example, a shape which is added in Publisher, the corresponding HTML code would be something like:
    <span style='
    width:228px;height:231px'><img alt="shape here" width=228 height=231
    src="index_files/image296.png" v:shapes="_x0000_s1026"></span>
    We can see that, the value “src” attribute of the <img> tag represents a relative path which can’t be found in the existing SharePoint site structure, it means
    that the shape will not appear in SharePoint page.
    In Publisher:
    In SharePoint page:
    As a common practice, I would suggest you create a new HTML file using Visual Studio or SharePoint Designer and examine the design in browser during the development,
    it would be easier to compose a valid and browser-compatible HTML file.
    Two articles below about tips on how to write good HTML for your reference:
    http://learn.shayhowe.com/html-css/writing-your-best-code/
    http://sixrevisions.com/web-standards/20-html-best-practices-you-should-follow/
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Adding html into edge animate text box from external js file

    I have a text field in edge animate that I want to update with a score. The function that is used to click and update the score is in an enternal file so I'm trying to figure out how to get my edge animate div to be read by jquery in the external file. This is what I have so far in the external js but it isn't reading the edge animate text field properly:
    external .js file:
            AdobeEdge.coinCounter += 250; // this calls the variable coinCounter which was set in edgeActions.js and updates it from the original 0 value
                    alert(AdobeEdge.coinCounter); // this shows it works and updated correctly
           var comp = AdobeEdge.getComposition("EDGE-172492634");
           var stage = comp.getStage();
         stage.sym.$("gameText").html(AdobeEdge.coinCounter); // this is where things go wrong. I want this updated value to read back into the textbox called "gameText" that is in the edgeAnimate composition
          stage.sym.$("gameText").html("NewText"); // nothing reads to the "gameText" textbox; something must be wrong how I am referencing it outside of edgeActions in the external .js file
    Would someone mind helping me reference the textbox "gameText" correctly so I can input my new value? Thank you!!

    Thank you. The learning curve is taking me awhile. It works now:
        var checking = AdobeEdge.getComposition("EDGE-172492634").getStage().$("gameText").text();
        alert(checking); //yay!
    Thanks Joel!

Maybe you are looking for

  • Clearing Check box

    Hi, I have to create the credit memo based on user selected records. My program is doing it, but I am having two problems, 1)After creating the credit memo it is not clearing those records, if I choose next set it is adding 2nd time selected records

  • Printing to a Printer Connected to TIme Machine when using Remote Desktop

    Hi, I am having trouble printing to a printer connected to our wireless network via Time Capsule when I am on my remote desktop connection. Printing from all other programs work. I downloaded Bonjour on our Windows based server, and it did not detect

  • Itunes 12.0.1 home sharing issues

    Hi, Just wondering if anyone else was having problems with home sharing and iTunes 12.0.1? My whole house pivots around home sharing, so this was a bit annoying when I couldn't get it to work after installing Yosemite and itunes 12.0.1.  I have apple

  • Remap CAPS as BackSpace

    setxkbmap -option capslock:backspace or in config /usr/share/X11/xkb/symbols/[your layout]     key <CAPS> { [BackSpace,        BackSpace,         BackSpace,        BackSpace ] }; But the trouble is that sometimes when you press caps, backspace activa

  • New div in editable content area

    I want to create a new div within the editable area of my DW page (CS4). This is not the template file, but the actual page I'm working on. It will create the div, but I can't get any of the attributes like width and position to apply. Is there a cer