Using find/change in Indesign CS4

I am needing to change date colors for a calendar.  That for instance for the Month of June the 1,4,7 &10 need to be in red, 2,5,8,11 need to be blue and 3,6,9, & 12 need to be green.  Does anyone know of a way to do this without having to enter each individual date?  Thanks so much!

Something along these lines:
app.findGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\b(1|4|7|10)\\b";
app.changeGrepPreferences. // appliedColor or swatches or whatever = "red"
app.activeDocument.changeGrep();
app.findGrepPreferences.findWhat = "\\b(2|5|8|11)\\b";
app.changeGrepPreferences. // appliedColor or swatches or whatever = "blue"
app.activeDocument.changeGrep();
app.findGrepPreferences.findWhat = "\\b(3|6|9|12)\\b";
app.changeGrepPreferences. // appliedColor or swatches or whatever = "green"
app.activeDocument.changeGrep();
Peter

Similar Messages

  • Keep layout position when using Find/Change?

    When using Find/Change in InDesign CS4, each occurrence of the "Found" material is centered in the window, so the page moves around with each find. Is there a way to keep the page in a fixed position when searching through a document?

    Actually, I can think of a shortcut for the hard part: The user uses the
    regular find/change UI to make all their settings. Then, they run the
    script, which will simply use the settings in the UI. Nice, huh! So you
    could get a listBox of all the finds -- select the entry and you get
    taken to the desired location. Click the "change" button and the change
    is made. Here's a proof of concept:
    #targetengine engine20
    var myFinds = app.findText();
    var w = new Window("palette");
    var myList = w.add("listbox", undefined, myFinds);
    var changeButton = w.add("button", undefined, "Change");
    myList.onChange = gotoFound;
    changeButton.onClick = makeTheChange;
    w.show();
    function gotoFound(){
    app.select(myFinds[myList.selection.index].parentTextFrames[0].parent.parent);
         app.select(myFinds[myList.selection.index]);
    function makeTheChange(){
         myFinds[myList.selection.index].changeText();
    Obviously very rudimentary: but this does work in CS4. If the list is
    too long, though, the change button will disappear off the bottom of the
    screen. Also, really once the change is made, the item should be removed
    from the list, but there's a bug in CS4 that makes it impossible to do
    that simply, if I recall correctly (or was that only a tree list?)
    Also, I have found that the only sure way of getting the entire spread
    to show is as I've done it above (and it would need much more error
    checking than this -- for instance, overset text).
    Ariel

  • How to use Find Change to add FC in front of all item numbers?

    Hello,
    I am using Indesign CS5 on iMac, running OS 10.8.3.
    I designed a product catalog that has 148 pages. Now I need to save the same design and make a new catalog for our wholesalers. On the wholesalers catalog I need to change the item numbers and add FC in front of each item number. How can I use find change to find each item and change them with FC in front of the item numbers? The following are a few examples of the item numbers:
    LED-4042 I want to change it to FCLED-4042
    UA-42 I want to change it to FCUA-42
    SC-110 change it to FCSC-110
    KN-10 change it to FCKN-10
    etc....
    I am hoping there is a fast way to find and change these.  I was looking in to GREP, but I could not figure how to do this.
    Thanks,
    Omar

    One way would be to just run it and then *remove* any double FC's -- but GREP can do even more! One of its many functions is to scan ahead for the presence or absence of certain text, and only act when it is (or it is not) there. This is called "lookbehind" (before the text you want to match) and "lookahead" (after the text you want to match).
    In this case, you want to find a phrase starting with capitals, but NOT the exact string "FC". That's a job for Negative Lookahead -- Only Match If Not.
    Try this: search for
    \b(?!FC)\u+-\d+\b
    ... the Replace With stays the same.

  • Can you use Find/Change to search for many different words at once?

    I have an 80 page catalogue in Indesign (CS5) - it has several thousands of catalogue numbers listed as text within it. I've just been given a list of 1000 catalogue numbers to search for and if they appear, remove them - is there any way to search for them all in one go, rather than one by one?
    I've started using Find/Change to search for the catalogue numbers but seem to only be able to search one catalogue number at a time that way.
    Any ideas welcome!
    Thanks

    GREP can search for more than one phrase "at once" (i.e., in one operation), like this:
    word1|word2|word3
    -- the pipe | delimits the separate words. Then again, GREP Is Not Magic™. This --
    ...  a list of 1000 catalogue numbers to search for ...
    is a bit too much to copy-and-paste into the single Find What line. There is a limit of ten or twelve (or something) OR phrases you can use in GREP.
    On the other hand: GREP is great at finding numbers. If all of your catalogue numbers obey some basic rule, for instance "all of them consist of 6 digits and there are no other numbers with exactly 6 digits", well, that we can probably work with.

  • Test: Using Crop marks in indesign CS4 with Epson 3800 Mac 10.5.7

    Jun 19, 2009 9:35 PM
    Crop marks using indesign CS4 with Epson 3800 Mac 10.5.7
    My crop marks and pages are printing larger than my document sizes.  My paper size is 13x19, so I should have crop marks at the exact corners of the page sizes.  But indesign is printing the entire document larger.  So my document which is 11x14.75 is now printing 11.25x15.5.  All my settings are correct. So, is anyone else using an Epson 3800 with CS4 indesign having issues such as the above?  And can I ask (beg) a few of you to do a test print with crop marks and let me know the results?
    My workflow has been completely stalled because I can't get my pages to print the right sizes with the crop marks at the right measurements.  I'm printing a photo portfolio on the Lumijet double sided paper and "when" it did work awhile back sometime several months ago, the finals looked great. I've already reinstalled both the Epson 3800 driver and the Indesign CS4 software, but the results are still the same.
    So, here are my settings:
    document size: 11x14.75
    in the print panel:
    Printer: Epson 3800
    Setup: Paper size: Super A3/B13x19, scale 100% width & height, page position Centered
    Marks & Bleed: Marks: "Crop Marks" checked. offset: 0, weight: .25, Bleed and Slug: Use Document bleed settings, include slug area.  The bleed is 0 for top, bottom, left and right
    Color Management: Document profile: Adobe RGB, Options: Indesign handles colors, Printer Profile: (A custom made profile using Xrite for the 3800 with Lumijet paper)
    The settings on the Epson 3800
    Epson 3800 Printer
    Presets (set for the profile mentioned above)
    No Color management
    Sometimes, on a whim, the printer and indesign cooperate together like good little children should. But not often.  And I can not conclude why they are nice to each other sometimes, but given the same detailed data at other times, they fight.
    If anyone could run through a similar process using indesign with a photo layout and setting up the printer settings for both the Epson 3800 and in the indesign program and let me know their results, I would value your conclusions very much.  You don't even have to waste paper or ink.  Finally, after wasting so many pages of paper and of ink. I deleted the photos from the page, and printed it blank with only the crop marks for me to measure if it was coming out right or not.
    Thank you for any response.  And feel free to call me if you want to vent about Epson 3800's or about Indesign CS4 anytime! I'm up late....  646 256 8853.
    Thaddeus

    I specified the paper size as strictly 13x19, no boarderless, no retain size.  Same problem.   I also did as you suggested below.  The pdf document does remain true to the document.  As a pdf doc. I changed the color mgmt to Adobe rgb 1998.  It looks okay, but not as lively as I get when printing correctly with my color mgmt working and in sync. 
    Your final question about simply using photoshop.  Well... I might go back to it and give up on Indesign if this is the case that it won't simply crop my documents to the sizes that I input them to be cropped as.  But, I am using Indesign so that I can create a page layout that I can't do in Photoshop.  My folio is about 25 or more pages with double page spreads.  I am printing on a two-sided Lumijet paper and my folio was custom designed to be cut out at 11x14.75.  If and when it is printed correctly, I am printing on both sides of the paper and trimming it to exact size.
    It sounds as if you have exhausted the potential problems and don't have a clear explanation for why the doc isn't printing correctly in Indesign either with the color mgmt. or the document sizes.  I'll try one more print using a different color profile similar enough to get at minimum, an okay print. If it doesn't print at least okay, then it isn't most likely my profile..... Okay done.  Crazy.  The color is inaccurate, but for some reason or another, the document size printed correctly. It measured exactly 11x14.75.  What I have done during this period of time is:
    First) I did as you suggested and turned the Print to Adobe PDF 9 and created a print there. I measured it and it did measure correctly.  I didn't love the color, but... at least it is measuring correctly. 
    Second) I turned the Printer back to Epson 3800 (I'm beginning to think that this simple gesture was what caused the printer to print correctly)  I didn't change any settings, but I did make sure that they were set correctly as before. The paper size was set to 13x19.  When I make sure this setting is right in the "printer" dialogue for the Epson 3800, and then switch back to ID, the printer dialogue in Id changes to "Define by Printer."  But I changed nothing, other than the profile to an older one that I used before. The color is still inaccurate, but at least for two prints just now back to back, the measurements were correct.   What to do? Lol.
    Thanks again for all of your time spent trying to resolve this issue.
    Sincerely,
    Thaddeus

  • Using CS2 script in Indesign CS4

    Hello,
    I am very sorry if this point has been already treated but I have not yet found the solution.
    I have Applescripts running on CS2, and I would like that these scripts could work either under CS2 and CS4 without any change
    I know there is a possibility of choosing the version but I can't find the code corresponding to applescript.
    Anymore I would be happy to find the applescript reference for Indesign CS4
    Thank you for your help
    Jean

    Please move this thread to Indesign forum, http://forums.adobe.com/community/indesign.

  • Subcript using find/change

    Hi I am trying to change for eg: H2O to H2(subscript)O using the find/change command. It doesn't work. Can anyone help?

    Ted, Peter and John,
    As Ted, I make scientific books. Such expression is rather treated as an equation with MathType or MathMagic editors. So this kind of question does not arise, for me. The treatment is done, eg, with a TeX syntax as: ${H}_{2}O$.
    I've created a lot of grep search/replace to do this. Eg: find H2O, CH4, SO4/2- … and replace by the good TeX syntax so that we can finally obtain MathMagic equations.
    SO4/2- is interesting: SO, normal, 4 (subscript), 2- (superscript with - using a special math MMTimes font), one under the other.
    Difficult too to treat with ID a formula where H2O is, eg, all in subscript!
    Easier to write it with MathMagic and, fortunately, a lot of "formulas" will be treated by search/replace as:
    search H2O
    replace by: ${H}_{2}O$
    Good night! (22h 20, in France) 

  • Find change in indesign CS5.5?

    Here is the requirement.
    Sample text: this is the bold text for demo purpose only to show the requirement.
    required text: this is the <Bold>bold text for demo purpose</Bold> only to show the requirement.
    Please advise.
    Virender
    PS: In msword we can do this easliy with find what text option.

    Hi virender_cts,
    Please use the below js code.
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.fontStyle = "Bold";
    app.findGrepPreferences.findWhat  = "(.+)";
    app.changeGrepPreferences.changeTo = "<Bold>$1</Bold>";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.fontStyle = "Italic";
    app.findGrepPreferences.findWhat  = "(.+)";
    app.changeGrepPreferences.changeTo = "<Italic>$1</Italic>";
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
    thx,
    csm_phil

  • Using Find/Change in CS2

    Is it possible to search for a single number (such as 1 or 2) without the results including multiple numbers (like 12 or 123 or 1234)?

    Selecting the "Words only" option will do that. It'll still find the 1 in "1-2", but not in either "12" or "123", so it's a bit better than plain search.

  • Adobe Indesign Find Change Item Numbers?

    I am using Indesign CS5 on iMac, running OS 10.8.3.
    I designed a product catalog that has 148 pages. Now I need to save the same design and make a new catalog for our wholesalers. On the wholesalers catalog I need to change the item numbers and add FC in front of each item number. How can I use find change to find each item and change them with FC in front of the item numbers? The following are a few examples of the item numbers:
    LED-4042 I want to change it to FCLED-4042
    UA-42 I want to change it to FCUA-42
    SC-110 change it to FCSC-110
    KN-10 change it to FCKN-10
    etc....
    I am hoping there is a fast way to find and change these. I was looking in to GREP, but I could not figure how to do this.
    Thanks,
    Omar

    This could be a very complex GREP - or a very simple one.
    4 Examples are good, but we need more concrete examples. In particular, the longest and the shortest example.
    LED-4042 I want to change it to FCLED-4042
    UA-42 I want to change it to FCUA-42
    SC-110 change it to FCSC-110
    KN-10 change it to FCKN-10
    This will find your posted item numbers - but …
    \<\u{2,3}-\d{2,4}
    change to:
    FC$0
    AND: exists one or more item number/s with FC at the beginning? I hope it is not so.
    <edit>
    A new day, a better solution (This GREP can be used many times in succession. It may already one or more "FC-numbers" be present.):
    \<(?!FC)\u{2,3}-\d{2,4}\>
    Or if no similar strings are exists in your document:
    \<(?!FC)\u+-\d+\>
    Have fun and give a feedback.
    edited by pixxxel schubser

  • Hyperlinks on master pages not working after distilling (InDesign CS4)

    Hello,
    We have started using weblinks in the PDF versions of my print magazine.
    As PDFs exported in InDesign are bloated, we use this workflow for creating the PDF issues:
    Export print-ready PDFs of layouts in InDesign CS4 (Mac)
    Combine PDFs into a single file in Acrobat 9.5.1
    Crop pages and export combined PDF as PostScript file
    Distill PostScript file in Distiller 9.5.1 using default "Smallest File Size" (with Page Thumbnails) setting
    We hyperlink all web addresses in the body copy.
    We also hyperlink the magazine's website address on the primary master page (A). All of the other master pages in the magazine are based on A-Master.
    We create hyperlinks by selecting the link, using the New Hyperlink command in the Hyperlink panel, and uncheck the Shared Hyperlink option.
    When we export the layouts using InDesign – either using our printer's settings or InDesign's Smallest File Size setting – the links contained on the master page work.
    But these links disappear when our PostScript file is distilled into a PDF.
    I know there is a bug in CS5.5 that can cause this problem. But is there any workaround or solution for this in CS4?
    Thanks.

    richard_cosgrove wrote:
    I managed to solve this problem by trashing the CompositeFont folder in InDesign's preferences and restarting InDesign.
    Why that should be causing the problems, I have no clue.
    Thanks for all the input and help.
    I'm having this exact same problem and would like to try your solution, but I can't find the "CompositeFont" folder
    I fround the Windows locations info below at http://helpx.adobe.com/indesign/kb/indesign-preferences-support-file-locations.html
    But I still didn't see any Composit Fonts folder. Do you have any suggestions on where I can look for this folder?
    Application "roaming data folder:"
    Win 7: C:\Users\[User Name]\AppData\Roaming\Adobe\InDesign\Version [#]\en_US
    Preference files saved into this location include the following:
    Color Settings: Record of the current application Color Settings, used to sync with other Adobe CMS enabled apps
    Composite Fonts folder
    Find-Change Queries folder: Contains user-defined find/change queries
    InDesign Defaults: Record of application defaults, as defined by user modifications
    Menu Sets folder: Contains user-defined Menu Sets
    Scripts folder: Location for user scripts to load into the Scripts panel
    Workspaces folder: Contains user-defined workspaces, as well as a copy of the Current Workspace

  • [JS CS3] Find/Change "[Basic Paragraph]" style

    I'm trying to find all occurances of the [Basic Paragraph] style and replace them with [No Paragraph Style]. I'm using:
    app.findTextPreferences.appliedParagraphStyle = "[Basic Paragraph Style]";
    app.changeTextPreferences.appliedParagraphStyle = "[No Paragraph Style]";
    I get the message "Invalid value for set property 'appliedParagraphStyle'. Expected String, ParagraphStyle or NothingEnum enumerator, but received "[Basic Paragraph Style]"."
    I've tried every combination of brackets, no brackets, quotes, no quotes, etc. It doesn't seem like this can be scripted, even though it can be done via find/change in InDesign. Am I banging my head against the wall? Does anyone know if this can be done?

    "[Basic Paragraph]" as shown in the code below doesn't work either. (the word "Style" actually snuck in as I was trying different variations. But no combination seems to work.
    If anyone knows that [Basic Paragraph] can or cannot be accessed via scripting, I'd like to know. Thanks.
    app.findTextPreferences.appliedParagraphStyle = "[Basic Paragraph]";
    app.changeTextPreferences.appliedParagraphStyle = "[No Paragraph Style]";

  • FIND/CHANGE - Applying Paragraph Style

    Hello,
    I used FIND/CHANGE to apply my paragraph style and when I apply the paragraph style... it applies the style to the entire line.
    For example,
    A. #70712       resulted to         A. #70712
    I only wanted the "#70712" to be changed to my style. I used the GREP search and entered #.+ and then I choose the paragraph style I want and clicked change all. The problem is that it changed all the text on that line and applied the paragraph style.
    Please help. Thank you very much.

    graphicsoc wrote:
    Hello,
    I used FIND/CHANGE to apply my paragraph style and when I apply the paragraph style... it applies the style to the entire line.
    For example,
    A. #70712       resulted to         A. #70712
    I only wanted the "#70712" to be changed to my style. I used the GREP search and entered #.+ and then I choose the paragraph style I want and clicked change all. The problem is that it changed all the text on that line and applied the paragraph style.
    Please help. Thank you very much.
    If I understand your request correctly:
    If your paragraph style uses a numbered list to create the "A." and the remainder of the paragraph consists of only "# 70712" that you type in manually (or place from an existing file), I believe that you you don't need GREP. You can format the auto-numbered list differently from the remainder of its paragraph, by specifying a character style for the number portion.
    To extract only the non-numbered portion of an auto-numbered paragraph, for a TOC, in the Table of Contents dialog box, open the bottom part by clicking More Options if necessary, and in the Numbered Paragraphs pull-down menu, select Exclude Numbers.
    Read more about Table of Contents in Help, and/or with a Google search for terms like "InDesign table of contents numbered list exclude numbers" without quotes.
    If you need additional special formatting "tricks" in the source paragraphs, or in the TOC entry paragraphs, look into Nested Styles and GREP
    Styles in Help or Google searches.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Find/Change problems within a nested style?

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

  • Find/Change Inserting paragraph break

    Hello
    I am trying to insert a paragraph mark between two lines of text using find/change
    The first line has a heading style and I want to insert an empty line (Paragraph) after it and before the next line (without changing any formatting)
    I am able to use enter the correct parameters in find but can't figure out what parameter to use in 'Change to"
    Forced line break doesn't produce what I want. Neither does standard carriage return (not sure what that is)
    I have tried both Text and Grep dialogs without success. Yes I read the help files.
    This will be simple for you guys but is stumping me.
    Any ideas oh brilliant ones?
    As usual Thanks much in advance

    Err, a paragraph mark? You mean a paragraph break?
    Anyhow, if you insist on Doing it Wrong, you can use ^p ("End of Paragraph") in the change field. So you might
    change ^p to ^p^p to insert a blank paragraph between each paragraph. For instance. But again, it is the wrong answer.
    Yes-a paragraph break.' Sorry for the imperfect terminology
    The first line is a heading style which I was advised in this forum to make into a 'list style' due to TOC issues
    The 'doing it wrong' paragraph is going to be used to anchor a graphic and then converted to a very small paragraph mark (nearly invisible) as advised in another article
    I did use the
    change ^p to ^p^p
    but it creating another list style as the paragraph break. Its ok. I went ahead and did it anyway and then manually changed all of those entries into a regular paragraph 'break'
    With 300 graphics I would like to automate this but.....
    Thanks for your reply

Maybe you are looking for

  • Passing data from OA Page to JSP - '°' appears as'?'

    HI, I need to pass a parameter value °F from an OA Page to a JSP. but in the JSP, °F appears as ?F.(same in jserv.log file) I pass the parameter using pageContext.setForwardUrl("url?data=°F"); How can I solve it? Thanks, Gowtam

  • Value-based hierarchy on ROLAP dimension. Is this possible and how?

    Value-based hierarchy on ROLAP dimension. Is this possible and how? If yes, what tool I have to use. Any simple examples?

  • Webdynpro in Mobile devices

    Hi experts, Can I get from my webdynpro any number, code or string of the mobile device? I need detect who is connected without use a login screen. thanks in advance, david

  • Menu items and panels gone

    Hi, We are having a problem with one of our installations of InDesign CS4 (6.0.6) on PC, Windows XP, on a user account with Administrator's rights. It is an issue described many times on the forums: All of a sudden, some pallets stopped showing corre

  • How can another user of my p.c use my music

    Hi, Maybe I am being stupid here but using Windoze XP I have set up my daughter to use my P.c with her own account and sign-on. So when she visits me she can "switch" user to "herself" and use my p.c with her own settings - you know what I mean, all