Color of find/replace Word

I use InDesign CS5 on a mac.

I have set up a GREP search to replace the Word colors with the colors, I defined in InDesign. Works fine when I run it in InDesign. However, when I put the search in the FindChangeList.txt file and run the FindChangeByList.jsx script, I always get an error. He said: this is the error #17, line 172:

app.doScript (myString, ScriptLanguage.javascript);

Anyone know why?

It comes to research, I put in the .txt file:

grep {, fillColor: "Word_R0_G128_B0"} {, fillColor: "Black"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} //Replace Color Word

I came across several posts that say there are several free scripts that can run saved queries to GREP all at once, but they list the names of script or link to everything. Does anyone know a script that combines queries?

I think that it will fire on the part '{, '. Commas go between values, but you only have a single value. Just out this comma before "fillColor", in both places.

Tags: InDesign

Similar Questions

  • Find/replace a Word and a space with an em dash

    I imported the text in there: "title:" (note the space after the colon)

    I wanted to replace the word, colon and space by an em dash.

    But InDesign is not letting me do. I can find/replace "title:" without the space. But I want to replace this space, too! How can I do this? Thank you!

    Julie

    Hello

    ? Why not just replace the word, colon and space by an em dash?

    Grep search:

    Search: Title: \s*

    Replace by: ~ _

  • Find/replace, highlight found text script

    Hello

    I wrote this script and it works fine. But what I want to do is to go through each word found individually (as in the Find/Replace dialog box with the button "find next").

    This is an excerpt:

    app.findTextPreferences = app.changeTextPreferences = null;
    var what = app.findTextPreferences.findWhat = "ensure";

    app.changeTextPreferences.changeTo = "make" sure;
    var found = app.activeDocument.changeText ();
    If {(found.length = 1)
    Alert (found.length + "instance of"ensuring"changed");
    } else {}
    Alert (found.length + "instances of"ensuring"changed");
    }

    I want the script to each instance of "ensure" my active selection that I can see where they are before I change.

    Thank you

    Hi guys,.

    try this one:

    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.findWhat = "ensure";
    app.changeTextPreferences.changeTo = "make sure";
    
    var allFounds = app.activeDocument.findText();
    for (var i = 0; i < allFounds.length; i++) {
      var curFound = allFounds[i];
      curFound.select();
      app.layoutWindows[0].zoomPercentage = app.layoutWindows[0].zoomPercentage;
       if(confirm("Do you wish to change this instance?",undefined, "Find/Replace")) {
         curFound.changeText();
      }
    }
    
    app.findTextPreferences = app.changeTextPreferences = null;
    

    Disadvantage of the confirm dialog box: there is no exit button.

  • Why I can't get a hit with the find/replace glyphs palette. Faces of fonts checked.

    Screenshot 2015-11-04 00.30.31.png

    I received a copy (word doc) with a table using glyphs Sq Root in place and place check marks. Looking to find replace but GREP and text can't seem to manage the ROOT SQUARE or check MARK glyphs. If the glyphs tab of course right?

    Providing I still exact characters corresponding and no delicate Adobe fonts not anchored object with font substitution, that I can't seem to make a match with the glyph of the SQUARE ROOT.

    No idea why? Attack from a previous thread on my confusion even find these glyphs of fonts that appear to contain them who do not.

    Hey thanks for this tip, I've seen this kind of keyboard shortcuts commands, but never thought to use it in this situation. It turns out that, because the glyph is in a table , I need to set the "Include locked layers and locked objects (FindOnly)" even if the layer is not locked, I suppose that the tables are "locked" per class.

  • Find whole words with Grep Style

    Hi, need some help with this, he cannot know.

    I need to find some words in the style of a paragraph. I have created a character style to 'be bold' and you want to paraghaph style 'ainesosat' to use it when there are words in the paragraph.

    the words are for example

    Rasvaton maitojauhe

    Maitojauhe

    Juustojauhe

    Kerma

    VOI

    I know I can find these with this string:

    Rasvaton maitojauhe | Maitojauhe | Juustojauhe: Kerma. VOI

    but I don't want to find for example:

    Voimakassuolainen

    -includes "Voi".

    Also the words could begin with capital letter or not. I can of course dublicate chain and do both, with or without capital letters, but if there is a better solution for it, I'd be happy to hear...

    Tero

    1. add parentheses and word limits:

    \b(rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    2. Add the flag "ignore case" at the beginning:

    (? i) \b(Rasvaton maitojauhe | Maitojauhe | Juustojauhe | Kerma. \B voi)

    See InDesign help | Find/replace for GREP options. You can use almost all the search commands in a GREP style, but does not replace those. ('Almost', because a GREP style, by definition, is limited to a single paragraph to work, and tempting to cross paragraphs automatically him will fail.)

  • Find/replace for text formatting

    Hi guys,.

    How to use find/replace for text formatting changes? I would like to change a text of entire book to try an another typographical options. The book is currently typed in text of Lyon. The problem is when I change to Sabon will make it overides the italics and the word "BOLD".

    I tried to find/display

    Search

    Lyon text regular italic

    Change

    Sabon italic

    Captura de pantalla 2015-02-18 a la(s) 10.17.19.png

    but it does not work. Most of the text of this book is not formatted with the character to italic Style, for example, just a paragraph Style General to make it easier to work with.

    What I am doing wrong? Any help or ideas?


    Thank you!

    All of the text has a paragraph style that applies the formatting of basis for the whole paragraph. ALL text that deviates from the General formatting of the paragraph should have a style of character applied somehow, either directly, or as a nested or style GREP, which overrides the formatting of paragraph and gives what you want. The paragraph styles that do not change the font family are much more useful, for example a style that just changing the text in italics, as they continue to work when you change the font family of the paragraph style in the basic text format section.

    Character styles are used ONLY to change the part of the text in a paragraph. If the paragraph has the same formatting, it should have a paragraph set for this format style.

  • Find + replace empty editable content area

    Nice day

    I created an editable region in a model specially designed for the follow-up of the pixels that change from time to time, depending on the service provider we use for campaigns. That's what the code looks like:

    <!-InstanceBeginEditable name = 'followed'--> <! - InstanceEndEditable - >

    We need to update this empty region with content on several pages 300 +, but the base Find & Replace will do, as it is a region locked in the child page and so - I think - is not "findable". Aside from manually update each page with the tracking pixel (sigh!), there's an ACE in the leg of someone to help me speed up this task?

    Thanks in advance for any help.

    You are right that you can't do this with DW. Best bet is to find another utility to do so. Notepad ++ is an option

    How to "Find and replace" words in multiple files

  • How find/replace in italics in a PDF?

    I would change all the italics in a PDF document to a different font, so they will recognize when I convert the PDF into an InDesign file. For now they are fake italics of an embedded font, so when I convert the file they disappear and turn into regular text. I will change the fonts once I converted so I don't necessarily have to keep a font italicized, just something different, so I'll be able to change them later to italics. I tried a few sentences and makes them Times New Roman instead of Janson Text 55 Roman and when I converted they remained as Times New Roman and I could make them italic font. I was wondering if there is a way to search the entire PDF file and do a find/replace mass rather than scroll through the entire novel and change them manually?

    Any help would be greatly appreciated!

    «... Find/replace italic... »

    Ahh, sorry. You do not have.

    (in the context of a word processor as activity).

    Do it manually with the tool "edit text and Images?

    Well, that't keep a mischief.

    Be well...

    Post edited by: CtDave

  • GREP to find certain word

    InDesign 5.5... Mac.

    ---------------

    Hi all

    Not sure if this belongs to the Forum script rather... because this is technically not a "script" in itself.

    Very simple question, one might think.

    I'm trying to get the Find/Replace dialog box to search for:

    (italic)

    Including the parenthesis. I know that the parenthesis is passed as-(and -).

    What is tripping me is the emphasis of the word. He will find 'ita' but not 'ital '.

    Could someone me idea possibly?

    Very much appreciated.

    See you soon,.

    ~ Nate

    And I have now found this as well. Sorry all.

    ( ? i)

    At the beginning makes the expression to ignore case.

    Here's the finished expression that finds "(in italics)', regardless of case:

    (? i)-(italics\)

    See you soon,.

    ~ Nate

  • can I find/replace the leader tab character?

    I have a Word document that I'm slope in ID and there are a lot of different tab with the leaders of the dot stops. The dot leaders are a simple point, but I want not a 'space-point' in order to spread them out more.

    I can't understand how to find a tab with a character specific point leader and change to another - if it was a uniform set of rules of text I want to make a Style with what I wanted and find/replace all, the problem is, is that there are a few pieces of text with two tabs three and four as well as "BOLD" and regularly mixed in so I have to make a Style for all versions of tab stops and it's longer than I want to take with it.

    So, is it possible to change only the leader? What is Grep something?

    TIA

    ID CS5 7.0.4 MacPro 8-core, 14 GB of RAM, Snow Leopard

    I think that may have to be scripted?

    However, you can do a search for "^ t".

    And increase the tracking/kerning in the change format (200 should do)

    Maybe do a replace/find so you can't change something unexpectedly.

  • I'm looking for links Hypertext in find/replace the dialogue (without applying a character style).

    I have 7000 hyperlinks in my document, with different character styles ("italic", "bold" and "italic +"BOLD""). I need to apply the blue color to each of them. If I ask a new character style "hyperlink" to all, I'll lose my formatting.

    Is there a way to find hyperlinks (for themselves, not their format) dialog find/replace in order to create and apply 4 different character styles ('hyperlink_regular', 'hyperlink_bold', 'hyperlink_italic' and ' hyperlink_bold + italic")?

    Sorry for my English, thanks for the help!

    Use Javascript!

    You can use this Javascript, for example. (Instructions on how to use a JavaScript in InDesign can be found elsewhere).

    blue = app.activeDocument.swatches.item("Blue");
    for (a=0; a
    

    Take care to provide the correct color swatch name in the first line.

  • How to use styles to characters in find/replace JavaScripts?

    First of all, good luck to Ole. It has been so useful (and a good writer, too). All the best!

    My JavaScripts find/replace run trouble in line 159 of the ExtendScript Toolkit. The script is looking for a particular font, it is expected to then apply a character style. I use the format that I see in the example text 'FindChangeList' to Adobe, but the script is always hit a wall. What I am doing wrong? I wish I had a working method for research, not only for fonts, but also to find a paragraph or character style and apply a new style.

    Simple stuff, but I'm roadblocked.

    Here's the script until now:

    This script applies the character style DFKai to the Arial Unicode font.


    text {findWhat: "', appliedFont:" Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle: 'DFKai'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find Unicode fonts; change the style of character DFKai.

    Thanks for your help!

    Gary Niemeier

    Gary Niemeier says:

    {include notes: true, include master pages: true include hidden layers: true, any word: false}

    This not is not valid JavaScript, it looks like it was copied from a script AppleScript but not changed properly. Keys property for options must not contain spaces, they must be written:

    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
    
  • Do find / replaces several at the same time?

    In PhotoShop, there is a practical tool, called 'ACTIONS' that allows you to automate several tasks. And in Microsoft Word, it is relatively easy to record a Macro that will do the same. Is there something similar in InDesign? Whenever I work with text, I do the following so often I want to automate:

    1. replace all quotation marks simple quotes

    2. place all the quotation marks double quotes

    3. change the entire multiple single space

    4 remove the trailing white space

    Right now, I open the FIND/REPLACE box and run all 4 tasks manually.

    Thank you

    There is a findchangebylist script that will do this for you.

    Bob

  • Help with letters in find/replace

    Hiyis. I am trying to replace all instances of 'US' 'US', but when I type in find/replace, I get stuff like 'chat' highlighted. No way to specify simply WE capitalized on its own? Or do I have to go through and review each proposed amendment?

    Thanks tons!

    Click on the icons for the case-sensitive and whole word in the dialog box:

  • Find/replace does not

    I'm on a Mac using 10.5.7 with Indesign Cs4

    I have a very big book, I'm working on and need to change a text header. When I use "Find/replace" he say "cannot find Match". I am looking for the document and decided to use a common word and I still get the same results. Any help would be appreciated as it is driving me crazy.

    It of just a hunch, but do you have anything in the box 'Find Format'?

Maybe you are looking for