encoding and export of text (JS CS3 MAC and PC)

Hi - I'm trying to export text in InDesign as an ASCII file. But I end up with a file of zero K.

myX var = new File (myTarget);

myX.encoding = "ASCII";

myX.lineFeed = "unix";

myX.open ("w");

myX.write (myString);

myX.close ();

I have success with this:

myX var = new File (myTarget);

myX.encoding = "UTF-8";

myX.lineFeed = "unix";

myX.open ("w");

myX.write ("\uFEFF" + myString);

myX.close ();

But the person at the other end of the export, says I need to convert UTF - 8 coding ASCII.

Any help would be greatly appreciated.

My bad! I knew that U + FFFD might appear occasionally in straight copied text out of InDesign, so I checked his UTF8 encoding and it's 'EF BB BF. That's why I thought that you are deceived and recommended to remove U + FFFD.

But... you're right after all. One tells you it's, "EF BB BF", also translates into yet another code ID use as a "placeholder": U + FEFF, and since it is also a special code in Unicode your customer has problems with it.

Change the line of replacement to it (this time around, I made sure to run your script and check the result before posting...).

myString = myString.replace (/ \uFEFF/g, "");

Tags: InDesign

Similar Questions

  • Adobe first/Media Encoder CC Crash when exporting video for ~ 25 min (Mac)

    Specifications of the laptop:

    OS X Version of El Capitan 10.11.4

    2.5 GHz Intel Core i7 processor

    16 GB memory

    Iris Pro 1536 Intel graphics card

    Problem:

    Adobe Premiere and Media Encoder CC constantly crash when I try to export the sequence of a project which is roughly ~ 25 minutes in length, H.264.

    The effects are used throughout the project, but only the base dissolves and black-and-white/contrast effects. Images comes from several sources, but all of the same mp4 file and type frame rates. There are also several PNG files in the Assembly, including the one I used to "frame" the movie to make it look more like images from other sources. Yet once, nothing complicated, not even a long dissolve (dissolved all is literally 2/24 frames in length).

    Split the video into sections and exporting separately are no problem, even when comparing a relatively short section of 4 minutes for a much bigger and more focused on the effects of section 11 minutes. Needless to say, I really, really, really prefer does not export this video into sections. The intended destination is youtube, and I just want everything in an own mp4, not two 12-minute videos.

    After some digging, I found similar problems reported on these and others and was especially deplore the possibility that my power supply is not large enough to cope, but it's still very confused. My MacBook is not 'stop', and as far as I could see, the Iris Intel Pro should have been sufficient even without a graph 5100 graphics adapter Pro 5200 or; as in the past I've already exported MUCH larger files, ranging from 35 to 85 minutes.

    solved by downloading latest driver for Nvidia CUDA for Mac - really just a problem with the Mercury playback engine. Guess OpenCL was not simply cut to get the type of work I was doing.

    Here is a convenient link to the latest CUDA for Mac drivers for all who encounter similar problems with export in Adobe Premiere Pro Media Encoder CC or CC: drivers CUDA for MAC Archive | NVIDIA

  • I have the Prime Minister but not encoder and im trying to export videois to how put it on dvd

    I have the Prime Minister but not encoder and im trying to export videois to how put it on dvd

    You must follow the instructions to download/install Encore DVD creating program, as long as the content of the library and put in place so that when you open it, you have all the stuff to work.

    Article download/install Adobe Encore:

    https://helpx.Adobe.com/Encore/KB/Encore-CS6-installed-cc.html

    http://helpx.Adobe.com/Encore/using/download-library-content.html

    Neil

  • exporting files from indesign cs3 to cs6

    Hi, I changed my computer and the version of indesign cs6 repeat myself all the cs3 indd files that I try to open, they are damaged.

    the files are not damaged.on my old mac I can still open them easily, and the new computer's mac as well.

    Thanks for your help

    There is no export from CS3 to CS6 CS6 should be able to open it.

    But if it fails, yo may try to export as INX of CS3 and open it in CS6 and save as a new INDD. Attention, the INX file must be saved in the same location that the INDD file is registered to find his images related to the CS6.

  • I can not install the entire suite of programs in CS3 Mac

    I have a desktop Mac G5 with OSX 10.5.8 and I can not install all the components of Creative Suite CS3. I tried to install the suite several times, once uninstalled and reinstalled and I get the same results: the installation disc will install Adobe Acrobat Pro 8, Adobe Bridge CS3, Adobe Device Central CS3, Adobe Extension Manager, Adobe Flash CS3, CS3 Video Encoder and Adobe Stock Photos CS3, and that's all.

    It will not install, Adobe Illustrator CS3, Adobe Photoshop CS3, Adobe Indesign CS3, Version Cue Server and common components, which is what the dialog box installation program tells me at the end of the installation.

    Does anyone have an idea what's wrong?

    I ended up installing CS3 on an external drive which has the same start system installed as my internal drive without any previous installations of CS2. After installation, the activation of the software dialog box asked me to insert the serial number CS2, which I did and it worked perfectly. I just start the computer by using the external drive when I want to use CS3.

    Thanks for the help.

    Noel

  • When I text on my Mac, why did he not appear on my iPhone?

    When I text on my Mac, why did he not appear on my iPhone?

    Have you followed these steps to implement continuity?

    Set up SMS and MMS with continuity

    1. You need to iOS 8 or later version on your device iOS and OS X Yosemite or later version on your Mac.
    2. Connect to the iMessage with the same Apple ID on your iPhone, your other iOS devicesand your Mac.
    3. On your iPhone, go to settings > Messages > sending & reception. Add a control to both your phone number and email address. Then go to settings > Messages > text Message Forwarding and activate the device or devices that you want to transfer the messages.
    4. Looking for a code on the Mac, iPad, or iPod touch that you enabled. Then enter this code to check on your iPhone.

    Make sure that your email address is checked everywhere.

  • Export the animated GIF on MAC

    Hello beautiful people of the internet!

    I have a small question: I always use first Pro CS6 and not the CC on my Mac version... is there a reason for me to upgrade if I want to export GIF animations faster... or is there a solution how to activate the file > load > media > animated GIF on mac?

    Unfortunately, to make a GIF animation on mac, you have to do some extra steps using Photoshop or other software that you're not supposed to do on Windows...

    On Windows first Pro CS6 supports export region selected as witch GIF animated unfortunately not the case for mac...

    Sorry to be redundant but my question is - is there a possible way to activate the function "export to animated gif" on Mac? or he did appear in later versions of first CC?

    Sincerely yours.

    Kami Inari

    Alas, export of gif is windows only.

    Workaround: Animated gif selection does not appear in the menu "output" first Pro CC?

  • Requirements for CS3 mac

    I have an old Mac running OS 10.5.8 and need to know if CS3 will run on it. Help?

    CS3 is a good version of Photoshop before Adobe added support for GPU.  I don't remember the conditions required for CS3, they would be not much different then CS6, with the exception of the GPU. What processor is has your old mac?  CS3 may require a processor intel nor and IBM power PC. I'm a windows user. I thing here period CS3 Mac were all OSX and Intel processors.

    Configuration of Photoshop

  • What is the best way, cheaper to upgrade CS3 MAC to a new CS for PC

    What is the best way, cheaper to upgrade CS3 MAC to a new CS for PC? I make graphics desing especially printing and a few web and don't want to get into books, electronic and other web graphics?

    Hi riverwalk2,

    I check & found CS3 Standard of design that you might be eligible for some special offer for the latest version of Adobe Creative cloud which is independent of the Operationg systems.

    Please choose the best option to http://www.adobe.com/products/discount-software-coupons.html?promoid=KAWQR

    Hope it helps you,

    Kind regards

    Baudier

  • Adobe Media Encoder save/export as swf formats?

    Adobe Media Encoder save/export as swf formats?

    If yes how?

    Thank you

    N °

    Why would you do that?

    You can view and export to F4V or FLV formats if your intention is to play the videos in Flash Player.

    formats that SOUL can export:

    http://helpx.Adobe.com/Media-Encoder/using/file-formats-supported-export.html

  • Export as text

    Sorry, this must have been asked and answered here several times, but I can't find a clear answer.

    Is it far from export a document in plain text format? At the moment I'm going via the Clipboard of the operating system, but there must be a better way.

    Thank you!

    "Export text" in the online help States that you will find all the export formats that are available in the export dialog box.

    ... OTOH, it fails to list them and doesn't mention (I think) you have to set your text cursor within a story to export plain text out of it. If you do so, you will find 'Text' only list "Save as type".

    If your problem is, you have several stories and you want to export all the of them, not one by one, try the ExportAllStories script. It comes pre-installed with your InDesign: http://indesignsecrets.com/exporting-all-stories-text-rtf.php

  • Export to text file paragraph Style

    I have an InDesign document (several really), where I would like to extract all the text formatted with a paragraph style to create a glossary.

    I looked at ChangeCaseofSelectedStyle ExportAllStories and Dave Saunder trying to cobble something together (my scripting skills are next to zero). I had that day, now I'm stuck and errors.

    Any help?

    If ((app.documents.length! = 0) & & (app.selection.length! = 0)) {}
    myDoc = app.activeDocument;
    myStyles = myDoc.paragraphStyles;
    myStringList = myStyles.everyItem () .name;
    myExportFormatList = ['Text only', 'RTF', 'Text referenced InDesign'];

    myDialog = app.dialogs.add var ({name: "ExtractParagraphByStyle"})
    {with (MyDialog)}
    {with (dialogColumns.Add ())}
    with (dialogRows.add ()) {}
    with (dialogColumns.add ()) {}
    staticTexts.add ({staticLabel: "Style of paragraph :"});})
    }
    with (dialogColumns.add ()) {}
    myStyle = dropdowns.add({stringList:myStringList,selectedIndex:0,minWidth:133});)
    }
    }
    with (dialogRows.add ()) {}
    with (dialogColumns.add ()) {}
    staticTexts.add ({staticLabel: "export as :"}); "})
    }
    with (myExportFormatButtons = {radiobuttonGroups.add ())}
    radiobuttonControls.add ({staticLabel: "Text only", checkedState:true});})
    radiobuttonControls.add({staticLabel:"RTF"});)
    radiobuttonControls.add ({staticLabel: "InDesign tagged text"});
    }
    }
    }
    }


    myReturn = myDialog.show ();
    If (myReturn == true) {}
    Get the values of the dialog box.
    myExportFormat = myExportFormatButtons.selectedButton;
    myDialog.destroy;
    myFolder is Folder.selectDialog ("select a file");.
    If ((mondossier! = null) & & (app.activeDocument.stories.length! = 0)) {}
    myExtractParagraphByStyle (myExportFormat, myFolder);
    }
    }
    else {}
    () myDialog.destroy; s
    }
    }

    myExportStories function handles the export of the stories.
    myExportFormat is a number between 0-2, where 0 = text only, 1 = 3 = tagged text and rtf.
    myFolder is a reference to the folder in which you want to save your files.
    function myExtractParagraphByStyle (myExportFormat, myFolder) {}
    for (myCounter = 0; myCounter < app.activeDocument.stories.length; myCounter ++) {}
    monarticle = app.activeDocument.stories.item (myCounter);
    myID = myStory.id;
    {Switch (myExportFormat)}
    case 0:
    myFormat = ExportFormat.textType;
    myExtension = 'txt '.
    break;
    case 1:
    myFormat = ExportFormat.RTF;
    myExtension = ".rtf".
    break;
    case 2:
    myFormat = ExportFormat.taggedText;
    myExtension = 'txt '.
    break;
    }
    myFileName = "StoryID" + myID + myExtension;
    CheminMonFichier = myFolder + "/" + myFileName.
    myFile = new File (myFilePath);
    myStory.exportFile (myFormat, myFile);
    }
    }
    +++ Functions start here +++

    function errorExit (message) {}
    If (arguments.length > 0) {}
    If (app.version! = 3) {beep()} / / CS2 includes beep() function.
    Alert (message);
    }
    Exit(); CS ends with a beep; CS2 left silently.
    }

    The example script, export all the text to the file might give you some clues:

    ExportAllText.jsx
    An InDesign CS4 JavaScript
    //
    Export all the text in the active document with a single
    text file. To do this, the script will create a new document,
    combine the stories in the new document using export/import
    and then export the text into the new document.
    main();
    main() {} function
    mySetup();
    mySnippet();
    myTeardown();
    }
    function mySetup() {}
    myDocument var = app.documents.add ();
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    myPage var = myDocument.pages.item (0);
    var myTextFrameA = myPage.textFrames.add ();
    myTextFrameA.geometricBounds = [72, 144, 72, 288];
    myTextFrameA.contents = 'This is story 1.';
    var myTextFrameB = myPage.textFrames.add ();
    myTextFrameB.geometricBounds = [72, 300, 228, 288];
    myTextFrameB.contents = 'This is the story 2.';
    var myTextFrameC = myPage.textFrames.add ();
    myTextFrameC.geometricBounds = [72, 444, 312, 288];
    myTextFrameC.contents = 'This is the story of 3.';
    }
    function mySnippet() {}
    //
    If (app.documents.length! = 0) {}
    If (. stories.length app.documents.item (0)! = 0) {}
    myExportAllText (app.documents.item (0) .name);
    }
    }
    //

    }
    function myTeardown() {}
    }
    //
    function myExportAllText (myDocumentName) {}
    var monarticle;

    File name for the exported text. Specify a valid file on your system path.
    var myFileName = "/ c/test.txt ';
    If you want to add a line of separation between the floors, myAddSeparator set to true.
    var myAddSeparator = true;
    var myNewDocument = app.documents.add ();
    var app.documents.item (myDocumentName) = myDocument;
    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;="">
    monarticle = myDocument.stories.item (myCounter);
    Export the story as tagged text.
    myStory.exportFile (ExportFormat.taggedText, leader (myFileName));
    Import (place) the file at the end of the temporary history.
    myNewStory.insertionPoints.item(-1).place (File (myFileName));
    If the imported text does not end with a return, enter a return
    to keep the stories 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.taggedText, File("/c/test.txt));
    myNewDocument.close (SaveOptions.no);
    }
    //
    function myGetBounds (myDocument, myPage)}
    var myPageWidth = myDocument.documentPreferences.pageWidth;
    var myPageHeight = myDocument.documentPreferences.pageHeight
    if(MyPage.Side == PageSideOptions.LeftHand) {}
    var myPage.marginPreferences.left = myX2;
    myX1 = myPage.marginPreferences.right var;
    }
    else {}
    var myPage.marginPreferences.left = myX1;
    myX2 = myPage.marginPreferences.right var;
    }
    var myY1 = myPage.marginPreferences.top;
    myX2 var = myPageWidth - myX2;
    var myY2 = myPageHeight - myPage.marginPreferences.bottom;
    return [myX1, myY2, myY1, myX2];
    }

  • CS3 Mac to PC CS2

    Im trying to save an Indesign CS3 doc and send to a PC CS2 user. When I save in Exchange format the PC says "not a document valid for InDesign Interchange"

    Im trying to find my old copy of CS2 and will see if I can save CS3 Mac Mac CS2, then PC CS2.

    Another one if I go to PC CS3 that will open my documents mac OK?

    W

    At the present time, the upgrade to 6 PM or PM 6.5 ID CS, CS2 or CS3 CS4 is only $199 for each platform.

    https://Store1.Adobe.com/cfusion/store/index.cfm?store=OLS-us&view=ols_prod&category=/appl wing/InDesign & distributionMethod = upgrade LEVEL & nr = 0 #view = ols_prod & store = OLS - US & loc = en_us & cat = category e / Applications/InDesign

    Looks slow sales made it a little less restrictive than it is me (I think).

    Al

  • predictive text on my mac

    Hi, please know how to turn off predictive text on my mac

     > System Preferences > keyboard

    text

    delete "predictive" registrations

  • Double retroactive loop via an encoder and a tachometer

    I'm building a human rotating Chair for research purposes and want to use a double retrospective loop to remove the backslash. The current system, however, includes only 1 Encoder on load (President) and 1 tachometer and the engine due to the geometry of the system, I can not put an extra Encoder on the motor. I would like to know if there is a controller of axes OR which may take a signal encoder and tachometer signal (speed - analog signal) to close the double loop retroactive.

    Please refer to the attachment for the functional diagram of the system.

    Thanks for any help.

    Hi Ron,

    Based on your schema, I don't see a way to do - are you willing to do all the control without firing the values in LabVIEW?  If so, then I don't see a way to do this.  If you pull the tach values in LabVIEW, you have more options, but none is as complete, having a second encoder.

    All movement PCI cards offer analog inputs, so that you could potentially play in the tachometer signal.  However, what kind of signal it is up?  If its RPM, there is a bit of calculation to actually determine the velocity and I worry not with that many steps in the software, you will kill any 'control loop price' that you may have.  I don't think that the system would be too sensitive if you have to shoot these values in the software; and unfortunately it is not "currently a movement card that reads these signals directly."

    I hope this helps.

    Marti

Maybe you are looking for