RTF export does not work in CS3

Dear Guys,

I am new in this field.

With the reference of the InDesign CS3 scripting guides, I exported out of a Document InDesing TXT.

But I can't export RTF output.

Can someone help me on this?

Thank you

SaRaVaNaN.N

I redid a little the ExportAllText.jsx script (from InDesign CS3 guide scripts package).

Now it exports all stories in a single rtf file: C:\Exported 1.rtf

All by running the script creates and deletes a temporary file: C:\Temporary file.txt

if(app.documents.length != 0){
     if(app.documents.item(0).stories.length != 0){
          myExportAllText(app.documents.item(0).name);
     }
}
function myExportAllText(myDocumentName){
     var myStory;
     //File name for the exported text. Fill in a valid file path on your system.
     var myTempFile = new File("/c/Temporary File.txt");
     //If you want to add a separator line between stories, set myAddSeparator to true.
     var myAddSeparator = true;
     var myNewDocument = app.documents.add();
     var myDocument = app.documents.item(myDocumentName);
     var myTextFrame = myNewDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myNewDocument, myNewDocument.pages.item(0))});
     var myNewStory = myTextFrame.parentStory;
     for(myCounter = 0; myCounter < myDocument.stories.length; myCounter++){
          myStory = myDocument.stories.item(myCounter);
          //Export the story as tagged text.
          myStory.exportFile(ExportFormat.taggedText, myTempFile);
          //Import (place) the file at the end of the temporary story.
          myNewStory.insertionPoints.item(-1).place(myTempFile);
          //If the imported text did not end with a return, enter a return
          //to keep the stories from running together.
          if(myCounter != myDocument.stories.length -1){
               if(myNewStory.characters.item(-1).contents != "\r"){
                    myNewStory.insertionPoints.item(-1).contents = "\r";
               }
               if(myAddSeparator == true){
                    myNewStory.insertionPoints.item(-1).contents = "----------------------------------------\r";
               }
          }
     }
     myNewStory.exportFile(ExportFormat.RTF, File("/c/Exported Text.rtf"));
     myNewDocument.close(SaveOptions.no);

     try {
          myTempFile.remove();
     }
     catch(e){}

     alert("Done.");
}

function myGetBounds(myDocument, myPage){
     var myPageWidth = myDocument.documentPreferences.pageWidth;
     var myPageHeight = myDocument.documentPreferences.pageHeight
     if(myPage.side == PageSideOptions.leftHand){
          var myX2 = myPage.marginPreferences.left;
          var myX1 = myPage.marginPreferences.right;
     }
     else{
          var myX1 = myPage.marginPreferences.left;
          var myX2 = myPage.marginPreferences.right;
     }
     var myY1 = myPage.marginPreferences.top;
     var myX2 = myPageWidth - myX2;
     var myY2 = myPageHeight - myPage.marginPreferences.bottom;
     return [myY1, myX1, myY2, myX2];
}

Tags: InDesign

Similar Questions

  • HTML export does not work in my host.

    HTML export does not work in my host.

    The program works very well. Look in the browser preview and published in businesscatalyst, but when I export to html and upload it to my server is bad, just misguided.

    Try to rename the master of the CSS css/master_a-p%c3%a1gina-maestra.css?fileVersionPlaceholder

    Your server reports an error 404. "The requested URL /css/master_a-pagina-maestra.css was not found on this server."

    I have a normal design for print so I'm not sure of the exact cause, but maybe the name of the file is lost in translation?

    J

  • Please delete my account.  The PDF exporter does not work and I would like a refund.

    Hello

    I am very disappointed with this program, I bought.  The PDF, I chose to convert a Word file never work.  I am very bored and would like a refund.

    Thank you

    Ashley Sullivan

    [email protected]

    Hello

    I'm sorry that the subscription has not worked for you. I have cancelled your subscription and set in motion the process of refund.

    Your refund no.is 66188739.

    Kind regards

    Florence

  • Export does not work

    Hey guys,.

    first of all, I know there are a lot of topics that this problem, but I couldn't find a solution as long as most of the time people have a different problem.

    Im a beginner to FCP, I just downloaded, because I want to move from Adobe.

    I finished my first project, but I can't export it. If I click on share, open the windows to the settings, I can choose where to save it.
    When I click 'ok', I'm back to the normal screen of FCP and nothing seems to happen.

    CF creates a kind of file, but is created in less than a second, and I'm not able to open these.

    I choose from any type of export.

    Can someone help me?

    Cheers, flo

    That you export from where? If you export a project, try exported from the event by selecting it. When you assign the location and return to the interface of the FCP watch the dial on the left side of the dashboard or press Cmd - 9 for the background task window. Once the export is launched, you can continue to work in the application, although of course it will slow down the process of exporting, but it is useful if you want to export a number of files in the order. You don't have to wait for each finish before starting the next.

  • Plug in microphone does not work in CS3 - SB

    Hello, all!

    I'm recording voice files in CS3 SB.

    I have a microphone of regular orders, at little cost that simply plugs into the mic jack in front of my computer.   It works for me without a problem when I record in Audacity.

    But, I get nothing when I try to save a new file in the SB.  I read the help section, which says I may need to activate the microphone in the Panel, but for the life of me can not find this Panel anywhere in my workspace or on any menu or tool bar.

    I'm fairly warned Adobe and can usually sort of intuit my way around work areas.   It left me speechless.

    Can someone help me?

    Thank you!!

    Mary

    Mary,

    I really appreciate your frustration. I had similar experiences.  Just for the heck of it, why don't download you SB CS5 free trial and see if there is a solution to your problem.  I think that there is an incompatibility of the driver somewhere.  Another one have you tried different MICS?  What kind of MIC are you using?

  • scale to fit does not work in cs3 Agency

    I have a problem with scaling to fit parameters of export in first Pro CS3. I need eliminate the black bars on the side of clips. I have check the appropriate size of the outlet box, but it will not do the job. I have to play with numbers of pixels manually in order to get rid of the black bars. Is this normal or am I missing something?

    Back at the beginning of your project. Now you want your project Preset to match your footage source 100%, even if you do a (custom) Desktop setting for the project. Now, everything matches.

    Adjustment scale is basiclly when import you, tell a still image, which must be resized to match the size of the project, although I highly recommend to anyone in this situation to use Photoshop to resize to match the project frame size, but that's just me.

    Once you change your source of the layer footage in the right predefined project, you can export to the specifications of file delivery. This is where you change things, not with the project - he must be in, or you will have problems.

    Good luck and hope that helps.

    Hunt

  • Lightroom video slideshow export does not work

    Hello. When exporting a video slide show, the program stops without explanation. do you have any idea to solve the problem? I use Lightroom 6

    I did a quick glance upward for the Dell 4300.  The technical details of Dell suggested that it was shipped with Windows Vista.  There may be models later, but you don't have enough computer to function well the latest version of Lightroom.   I don't really know what to think.  By adding a post, he works on the top and maybe someone else can do better than me.

  • OVF for export does not work

    Hello everyone, when we try to the FVO, get the error "the request failed because the remote server"xxxx"took time to answer" to export. Please let me know if you have encountered this error. version of vCenter: 5.5 stack error u2 call 'OvfManager.CreateDescriptor' for "OvfManager" object on the server vCenter Server 'xxx' has failed. -Suresh

    When we use webclient it works! -Suresh

  • export does not work for me 2015.2 new

    Can't access export features this new version until now.

    Max osx 10.10.5

    Yes, if you go back to CC 2015.1.1 / 6.1.1 you can open your existing catalog and you won't lose any of your changes. Don't forget to come back to 2015.1.1 / 6.1.1 (and not 2015.1 / 6.1), because it contains some important bugfixes for export.

  • Specification of space sRGB color in export does not work

    When I export RAW files obtained by specifying files I want the output color space sRGB have the Adobe RGB color space. The same is true if I said than I like in ProPhoto. Is this a bug? I did successfully in other versions of Lightroom, but not in 4.3.

    paulandrewwhite wrote:

    Interesting. For me, PS CS6 and Adobe Camera RAW reports like Adobe RGB. In Windows file details, the color representation is empty. No idea what could be wrong?

    What is the problem, is at bottom of the ACR dialog box show you, is set to Adobe RGB, that's what you get IF you click on OPEN and save only the data on the disk. The original data can be in sRGB, but new data saved the cab is in the color space you specified in the dialog box.

  • Preview limits does not work in CS3

    Hi, I use Illustrator CS3 on Mac OSX 10.5.8.  I disabled the limits found in the preferences while working through a tutorial and now I can't get it working again.  I rechecked the box in preferences and clicked on OK, but get no preview limits my selections, nor can I resize a shape by dragging one of its points.  I opened the preferences to confirm that the setting is still checked.  Any ideas what would cause this behavior?  Thank you.

    pants,

    Looks like corrupted preferences. You can try Ctrl + Alt + Shift / Cmd + Option + shift at the start to the top or move the folder with Illy closed to reset the preferences.

  • Photoshop change its settings when I try to export and export does not work.

    Recently I tried to export a design to a .jpg or .png and he said that there was a problem with the generator. I looked at the problem and I read that I had to go to Preferences > plug-ins and uncheck enable generator (which I did). I tried again, I got the same message and my preferences had been changed again.

    I really want to quickly export things.

    Can someone help me with this?

    Recommend you reinstall Photoshop.

    Open a Jpg/png file in Photoshop... Save it on as a Png, open it and try to export as a png.

    If that is still the same. The journal of CC Photoshop C:\Users\Username\AppData\Roaming\Adobe\Adobe 2015\Generator\logs supply generator

    ~ Assani

  • I need to export contacts as vCard iCloud to able to use android phone, but it does not work

    I need to export contacts as vCard iCloud to able to use android phone, but it does not work

    Help, please

    We need more than "does not work" to be useful.

    How do you try? Is there an error message?

  • Export bookmarks does not work for me.

    I tried to export my bookmarks to a file html several times now. The bookmarks.html file appears anywhere on my computer (I have searched for it). I know I've done this before (for more than one year) on previous versions of firefox, but it does not work now. Could you help me solve this problem?

    I found that the problem places.sqlite file has been corrupted. Regenerates the will now export file and bookmarks.

  • Why my php export feature does not work in IE and not firefox?

    Why my php export feature does not work in IE and not Firefox? I wrote a web application that contains a SigmaGrid. Grid controls reload, add update delete, print and export to CSV all work in IE8. The export function does not work in Firefox.

    Have you tried to test your application on IE7/8/9 and FF10/Chrome/Opera?

Maybe you are looking for

  • IPhone 6 black screen after failure to recognize my code

    iPhone 6 + would not recognize my access code or print, then the screen went black. cannot disable... always active phone

  • Upgrade to El Capitan - cannot be installed on Macintosh HD

    I'm trying to upgrade 10.6.8 to El Capitan, and it won't let me choose the drive. I have checked other questions about a similar problem and have already deleted the backups files, because the initial mistake was impossible to use a rear disc of time

  • Light does not work well on my Satellite A660

    Hello I have a problem with my Toshiba Satellite A660. The brightness of my screen does not work well, when I try to increase the brightness, it goes down, I mean is dimmed.I try to reinstall the drivers, but continue it problem. Anyone know what I c

  • report generation, 2 own excel graphics

    Hello everyone, I tried insertion of two paintings 2D into two tables, each table 2D in its own Charter. The problem is in the second table are both 2D arrays. You can see it in the attachments. I hope someone has a solution. Thank you very much in a

  • 907 cod invalid - when you try to deploy my application online.

    Hello I get this error when you try to dl and install my on-line application - 907 invalid cod. My app is great so I ripped out all the cod of the siblings and put them with the file jad on the server.  But I get always error when I download the appl