Possible bug in inDesign CS5 with find and change

This could be a problem with my script, or it may be a bug, not sure.

The script is used to find a double space in a text fragment and change to single space.

It only works once when it is run.

To make it work again you must close and reopen inDesign.

Here is the code:

app.findTextPreferences.findWhat = "";
app.changeTextPreferences.changeTo = "";
App.documents [0] .changeText ();

Works for me...

Try to screw up your prefs.

Substances

Tags: InDesign

Similar Questions

  • Possible bug: save the table with double and extended precision to the worksheet

    If one concatenates an array of double-precision and an array of precision extended with the 'build' vi table, then recorded using 'Write in a spreadsheet file' vi any digits to the right of the decimal are reset to zero in the saved file. Regardless of the entry of signifier of format (for example %.10f) to the vi 'Write in a spreadsheet file'.

    I'm on Vista Ultimate 32 bit and labview 9.0

    This is a possible bug that is easily circumvented by the conversion of a type before you incorporate arrar in a worksheet. Nevertheless, it's a bug and it cost me some time.

    Hi JL,.

    No, this is not a bug - it's a feature

    Well, if you'd look closer you would recognize the 'save to spreadsheet' as polymorphic VI. As this polymorphic VI does not support the EXTENSION numbers internally (it only supports DBL, I64, and String) LabVIEW selects the instance with more precision: I64 (I64 a 64 bits of precision, DBL that 53...). Your options are:

    -the value of the instance to use as the DBL (by right click and "Select type... »)

    -make a copy of this VI, save it under a different name and make support number of POST (not rework the polymorphic VI like you would break compatibility with other facilities of LV or future revisions)

  • Urgent need help with find and change / GREP

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    gd247 wrote:

    I'm working on a manual that contains more than a thousand paintings. I'm not quite familiar with GREP and need help to determine the right to coding/jokers to change the character style to a group of words/numbers on a global basis.

    For example, in Chapter 7, a paragraph style is applied to this line of text:

    TABLE 7.1: T4, T3, FREE T4 AND FREE T4ED

    I need to change "table 7.1:" for a character style and so of suite/so on up to "Table 7,150:"-while leaving the other numbers on the same line unchanged also.»» Is it possible to do without having to manually each table style number?

    No need for GREP. If "TABLE 7.1:" is text, you can create a nested character style that extends through the colon, in the paragraph style. "

    If "TABLE 7.1:" is created by a numbered list of automatic type paragraph style, you can specify a character style named for the part of automatic numbering in the drop-down menu Style of character, in the Style of numbering of the chips section and numbering of the dialog box Options of paragraph style. If the character style does not exist, you can stay in the operation of paragraph options by choosing 'New Style of character' in the menu. After you create the new style, you're back in the process of definition of the paragraph.

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • How to get images in indesign CS5 with javascript?

    Hello world

    How to get images in indesign CS5 with javascript? I want to delete them.

    Can someone give me some example codes?

    Thank you

    Bridge

    var doc = app.activeDocument;
    var graphics = doc.allGraphics;
    
    for (var i = graphics.length-1; i >= 0; i--) {
         try {
              graphics[i].remove(); // delete only image
              // graphics[i].parent.remove(); // delete image and its containing frame
         }
         catch (err) {}
    }
    

    Note: Tested in CS3, Windows

    I hope this helps.

    Kasyan

  • I am trying to download the InDesign CS5.5 update and continue to be "Update failed" "please contact your administrator if you want to apply updates on your computer. I did this and now have administrator rights, but I still get the message. Ho

    I am trying to download the InDesign CS5.5 update and continue to be "Update failed" "please contact your administrator if you want to apply updates on your computer. I did this and now have administrator rights, but I still get the message. How to do the update?

    Direct updates
    -----------------

    https://www.Adobe.com/downloads/updates/

  • Interactive report - is possible to find and change if necessary the unique column.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    33ac2d45-960f-45AF-acba-507f01d18e08 wrote:

    Please update your forum profile with a real handle instead of '33ac2d45-960f-45af-acba-507f01d18e08 '.

    While creating an interactive report, I accidentally entered the wrong "single column" on the sql query page.  Is it a big problem and how do I find and change if necessary.

    Query Builder
    Link to the simple view row Yes No
    Uniquely identify lines Single column ROWID
    Single column

    Yes. You can change this using the only the lines identified by / Unique column interactive properties in the section of the column of link in the attributes of the report definition report tab.

  • How to find and change in InDesign with GREP?

    Hello

    I'm working on Indesing with 100 + page at the same time and in this case use 'find & change' option for faster work. I found an application for "GREP" [find what: (\d)([\|\u]) | [() [\|\u]) (\d)) ] who find them number with character and the character with numbers. see in the picture below...

    Screen Shot-1.jpg

    Now, I want to change "GREP" code to add a sixth space in bwtween figures with the character and the character to the number. For more details, see photo below...

    Screen Shot-2.jpg

    can any buddy help it at the same time & the same query?

    Try the thius on a copy of the file, because it can have unintended consequences:

    Find \d(?=\u)|\u(?=\d)

    Replace $0 ~ %

  • Linked excel tables in InDesign CS5 update problems and keep the formatting: need help

    I've been using excel to place several tables in my InDesign CS5 document which will require the update on a regular basis. The tables are already formatted in excel, so I will place in InDesign with formatting and you will usually have to reduce proportionally the tables as soon as they are in InDesign CS5. When I'll update the links, it is important the content of the tables as part of current text with larger text and I am unable to "Insert the picture content" or "shrink content proportionally." Nobody knows how to solve this problem or know of another way to link excel with formatting tables and update without having to reformat the table (i.e. to resize the image and text) every time that happens an update? Thank you!!

    Can't do it, sorry. Tables only.

    Bob

  • InDesign CS5 | Create layers and automatically distribute. [script]

    Hi guys,.

    is there some script for Indesign CS5, which create layers automatically a nd distribute text, images and objects their?

    Ex: I have a layer with a lot of pictures and I want to distribute to layers another automatically.

    Best regards

    JNSaraiva

    Hi JNSaraiva

    At a glance of your first bid looked like you have three specific objects (image, text, otherObjects) and you want to move all the images a specific layer images and text on another layer objects and rest to another specific layer. If what you wanted then my first code complete final will fill it but in your subsequent post it sounds like you want to move all the objects in your choice on different layers, if that's what you want then try my code below:

    var mySels = app.selection.length;
    if (mySels == 0) {
        alert("Select the object and Run the script");
         exit(0)
      }
    else{
    while(mySels--){
              var objLayer=app.activeDocument.layers.add();
              app.selection[mySels].itemLayer = objLayer;
         }
    }
    

    Mac

  • Cannot open files in InDesign CS5 with CS5.5

    I created a file in InDesign CS5.5 and impossible to open the file in InDesign CS5. I got a lot of errors indicating I needed to update my plugins. Don't know what that means. Any help would be appreciated.

    Thank you

    Grant Novey

    You must export the CS5.5 files as files .idml to be able to open them in CS5. You may lose a few options of specific provision CS5.5 and text can flow back.

  • Problems with find and replace

    The search and replace feature doesn't seem to work
    To do the test I copy the code in a php doc and paste it into the find and replace article and click on search all (his game as "active document" and "source code".
    The result is saying 'finished. not found in the current document. It's disconcerting, as I've used it before and its worked
    Ive tried to reload everything and still no luck.
    I really want to get this work I need to replace pieces of code at least a hundred pages and hard to change it in one fell swoop doesn't have to do it manually
    all the best Graham

    yhallas wrote:
    > Find and replace function doesn't seem to work
    > To do the test I copy the code in a php doc and paste it into the discovery and
    > replacement article and click on find all (his game as "active document" and "source
    > code'.
    > The result saying "finished. not found in the current document. It's confusing
    > as I've used it before and its worked

    Make sure regular expressions use are not checked.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • InDesign CS5: Why hidden codes change from blue to red?

    InDesign CS5: I have a document with page 20 indesign file that is part of a book about InDesign document/chapter 23. Hidden codes are light blue through chapters 1 and 2. Then, in the middle of Chapter 3, at the bottom of page 10, hidden codes became Red until the end of this chapter. The next chapter contains the solid blue hidden codes. What is the Red mean and what I need to do to correct this. Thank you.

    Looks like this block of text that contains hidden characters is on another layer.

  • Text find and change the problem CS3 and CS4 scripts

    I use the script below to find text and turn them into others.

    There is one thing the script can't do it for me.

    Example:


    (g) management

    (1) that no law that is adopted in the Cayman Islands, a tax to collect profits, income, gains or satisfaction does apply to the company or its activities; and

    (2) that the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    Example: (end)

    I had a lot of subjects or points in the passage. And I want to change the space between '(g)' and 'Management' in a tab character. So I revised the plain text file 1texte.

    PS: 1text.txt is filled with what to change.

    text {findWhat: "^ p(^?)" ' "} {changeTo: "^ p(^?)"} ^ t "} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} search all space-dash-space and replace it with an en dash."

    The result is:

    (^?) ^ tManagement

    (^?) ^ tthat any law that is passed in the Cayman Islands, imposing a tax on profits, income, not capital gains or satisfaction applies to the company or its activities. and

    (^?) ^ tthat the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    PS: ^ t is a tab character.

    result (END)

    This is not what I want.

    It should be"(g) ^ tManagement'.

    PS: ^ t is a tab character.

    Please someboady help me out revised the script below to change the text in what I want. Thank you very much.

    Here's the script.

    FindChangeByList.jsx
    An InDesign CS4 JavaScript
    /*
    @@BUILDINFO @ "FindChangeByList.jsx" 2.0.0.0 January 10, 2008
    */
    Loads a series of strings delimited by tab characters from a text file, and then executes a series
    Find/replace operations based on the lines read from the file.
    //
    The data file is delimited by tabs, returns to cart that separates records.
    //
    The format of each record in the file is:
    findType < tab > findProperties < tab > changeProperties < tab > findChangeOptions < tab > description
    //
    Where:
    < tab > is a tab character
    findType is 'text', 'grep' or 'glyph' (this sets the find/replace operation type to use).
    findProperties is a recording of properties (text) search preferences.
    changeProperties is a recording of properties (text) of the change preferences.
    findChangeOptions is a recording of properties (text) of the options find/replace.
    Description is a description of the search/replace operation
    //
    Very simple example:
    text {findWhat: "-"} {changeTo: "^ _"} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} find all double hyphens and replace by an em dash.
    //
    More complex example:
    text {findWhat: ' ^ 9 ^ 9.} {' ^ 9 ^ 9 '} {appliedCharacterStyle: 'price'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find $ 10.00 to $ 99.99 and apply the character style 'price '.
    //
    All metacharacters search InDesign are allowed in the properties 'findWhat' and 'changeTo"findTextPreferences and changeTextPreferences.
    //
    If you enter the backslashes in the object findGrepPreferences findWhat property, they must be "escaped".
    as shown in the example below:
    //
    {"findWhat: '"\\s+ "}
    //
    To learn more about InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    or visit the InDesign Scripting user to http://www.adobeforums.com users forum
    //
    main();
    main() {} function
    var myObject;
    Ensure that the interaction of the user (dialog boxes display, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    If (app.documents.length > 0) {}
    If (app.selection.length > 0) {}
    {Switch(App.Selection[0].constructor.) Name)}
    case 'PointInsertion ':
    'character ': case
    case "word":
    case 'TextStyleRange ':
    case "line":
    stops of the "Point":
    case "TextColumn":
    case 'text ':
    case "cell":
    case "column":
    case 'Row ':
    case 'Table ':
    myDisplayDialog();
    break;
    by default:
    An option has been selected, but it was not a text object, so look for in the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Nothing has been selected, then just search for the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Alert ("no document is open. Please open a document and try again. ») ;
    }
    }
    function myDisplayDialog() {}
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});)
    {with (MyDialog.dialogColumns.Add ())}
    {with (dialogRows.Add ())}
    {with (dialogColumns.Add ())}
    staticTexts.add ({staticLabel: "beach of research :"});})
    }
    var myRangeButtons = radiobuttonGroups.add ();
    {with (myRangeButtons)}
    radiobuttonControls.add ({staticLabel: "Document", checkedState:true});})
    radiobuttonControls.add ({staticLabel: "Selected Story"});
    If (app.selection [0] .silence! = "") {}
    radiobuttonControls.add ({staticLabel: "Sélection", checkedState:true});})
    }
    }
    }
    }
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    {Switch (myRangeButtons.selectedButton)}
    case 0:
    myObject = app.documents.item (0);
    break;
    case 1:
    myObject = app.selection [0] .parentStory;
    break;
    case 2:
    myObject = app.selection [0];
    break;
    }
    myDialog.destroy ();
    myFindChangeByList (myObject);
    }
    else {}
    myDialog.destroy ();
    }
    }
    function myFindChangeByList (myObject) {}
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, ditto;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, monarticle;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/1test.txt")
    If (myFindChangeFile! = null) {}
    myFindChangeFile = File (myFindChangeFile);
    Ditto var = myFindChangeFile.open ("r", not defined, undefined);
    if(myResult == true) {}
    Loop in find/replace operations.
    {}
    myLine = myFindChangeFile.readln ();
    Ignore blank lines and comment lines.
    If ((myLine.Substring (0.4) == "Text") |) (myLine.substring (0.4) == "grep"). (myLine.substring (0, 5) is "glyph")) {
    myFindChangeArray = myLine.split ("\t");
    The first field in the line is the findType chain.
    myFindType = myFindChangeArray [0];
    The second field in the line is the FindPreferences channel.
    myFindPreferences = myFindChangeArray [1];
    The second field in the line is the ChangePreferences channel.
    myChangePreferences = myFindChangeArray [2];
    The fourth field is the range - used only text find/replace.
    myFindChangeOptions = myFindChangeArray [3];
    {Switch (myFindType)}
    case 'text ':
    myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case "grep":
    myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case 'glyph ':
    myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    }
    }
    } while(myFindChangeFile.eof == false);
    myFindChangeFile.close ();
    }
    }
    }
    function myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of find/replace before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeTextPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeTextOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText ();
    Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    }
    function myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGrepPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGrepOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep ();
    Reset grep find/change preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    }
    function myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of glyph in find/replace before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGlyphPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGlyphOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph ();
    Reset glyph in find/change preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    }
    function myFindFile (myFilePath) {}
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File (myScriptFile);
    var myScriptFolder = myScriptFile.path;
    CheminMonFichier = myScriptFolder + CheminMonFichier;
    If (queue (CheminMonFichier) .exists == false) {}
    Display a dialog box.
    CheminMonFichier is File.openDialog ("choose the file containing your list find/replace");.
    }
    Return CheminMonFichier;
    }
    function myGetScriptPath() {}
    try {}
    myFile = app.activeScript;
    }
    {catch (MyError)}
    myFile = myError.fileName;
    }
    return myFile;
    }

    I'm not a writer, but I'll take a stab and try to make a difference here.

    The main problem, in my opinion, is that you use a plain text instead of GREP search. Text gross has no provision to replace the text found by itself, for example, rather than using the codes you entered a literal string. Your search text of ' ^ p(^?) ' means find any character in brackets that occurs after a paragraph break. I would use in GREP ^ \s+ (\(.+?\)) which translates to find an opening parenthesis at the beginning of a paragraph (so he'll find if it happens to be the first character in th in a story) followed by a number any characters up to the first parenthesis (in the case where you have double the figures or double entries letter) followed by ANY white space (in the case where it is not an ordinary space or multiple spaces). Replace $1\t which means the text found in the first set of parentheses in query search followed by a tab.

    Parentheses are special in GREP, they surround groups of terms you want to re-use the text found, so looking for the actual characters you need to 'escape' with the-prefix, so \(.+\) will find a paren open followed by all the characters up to the end last paren in the paragraph. Addition of the? After the + makes research stop at the first closing paren met, although there are several sets in the paragraph.

  • Anybody have the same bug bit of lag with Wacom and photoshop cc from Yosemite installed two days ago?

    HY everybody,

    I just installed Yosemite on my mac two days ago.

    27' iMac, with 32 GB of ram... so I actually not lag issue.

    I use a Wacom Intuos 4. Last driver installed yesterday.

    But since the upgrade to Yosemite, there's a bit of lag but horrible bug when I touch the wacom with my stylus.

    Please help me!

    Alex

    After the installation of Yosemite and faced with the delay of two weeks, I spent a week on all the forums trying to find a solution, then I spoke with several representatives of the customer service of adobe and wacom.  According to a representative of adobe, wacom drivers are not completely comparable with yosemite, but they hope to be soon. I finally uninstalled and resettled yosemite mavericks, November 2014 wacom cintiq driver and photoshop CC 2014 and now my machine is like new.

  • Is it possible to install InDesign on a server and run from your desktop?

    I have installed InDesign on a server, created a share and gave access to this folder. Created a shortcut on my desktop and ran InDesign.

    I get a message saying:

    "Adobe Application Manager, need to check your missing or damaged license."

    Installation it does not help.

    Anyone have any idea on how to do it?

    This is not a supported configuration. InDesign MUST be installed locally.

Maybe you are looking for

  • HP ENVY Phoenix 860-008na: removal of the bracket for graphics card?

    system specifications are, Intel Core i7 6700 Skylake @3. 4 Ghz to 4 Ghz 16 GB DDR4 RAM 2 TB HDD & 128 GB SSD storage GTX980Ti 6 GB GDDR5 NVIDIA Windows 10 just wondering if its ok to remove the mounting bracket that is attached to the graphics card

  • possible replace audio realtek card?

    pavilloin HP Slimline s5610y desktop windows 7 64 bit PC I would like to know if I can replace the sound card realtek with another if so what slot type I look?

  • Pavilion 500 adding hard drive

    Bought a desktop Pavilion 500 computer last week.  Kind of disappointed with the documentation that comes with it, also disappointed with the documentaion on this site, just seems to have two manuals supplied with the computer, PDF files (but, maybe

  • I NEED TO INSTALL XP ON A LAPTOP

    I NEED TO INSTALL XP ON A LAPTOP.  IT HAS THE CERTIFICATE OF AUTHENTICITY ON IT.  HOW CAN I GET THE DISC.

  • Printer LaserJet 1536dnf MFP range: software LaserJet1536dnf of print settles

    I had several problems with my LaserJet1536 printer so I uninstalled all HP software. I tried to re - install the software three times, but I've always had this message: Error. A Setup operation took too long to run. It is a fatal error, preventing t