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

Similar Messages

  • Changing my indesign cs5 to indesign cs5 ME

    Hi
    I just download the Indesign CS5 and it seems that the RTL (right to left) not supported in this version. what can i do to convert my version to the ME version? or i need to reinstall? and if i reinstall to ME can i use the same serial?
    please tell me what to do... i cant work with out RTL
    the best
    hope to here from you soon
    Alaa Khanger

    The info on my website is a bit out of date. Like Peter eluded to, we are redoing our website. The new website will have much less focus on on-line sales of ME software. Selling ME software online has not proven to be the most lucrative of ventures...
    Interestingly enough, the fact that the website still lists CS4 has brought a number of inquiries of people looking for specifically CS4. Very few people seem to know how to go about getting a downgrade...
    I generally recommend people to get World Tools instead of the ME version for a couple of reasons:
    Price: It's usually cheaper to get World Tools than the ME version.
    Updates: The Roman version gets updated much sooner than the ME version. The ME version is almost always 2 dot updates behind...
    There are a couple of reasons why the ME version is preferable:
    Suites: If you need ME in Illustrator and Photoshop, You'll need the Me suite.
    Story Editor: If you use the story editor, and need it for r-t-l text, you'll want the ME version, because r-t-l text appears backwards in the story editor in the Roman version even with World Tools installed.
    The CS5 version of World Tools is very well integrated into InDesign, so in terms of the UI there's not much advantage to the ME version.
    If you already have CS5, you'd want to think twice about the ME version, because you will need to pay the full price to get it because there's no CS5 to CS5 upgrade. It's kind of odd, but you can get an upgrade from CS4 to CS5ME, but not from CS5 to CS5ME...
    FWIW, We offer a guarantee: if someone purchases World Tools and then decides it's not what they need, that we'll credit the full price of World Tools towards an ME purchase. We've been selling World Tools for more than a year, and no one has ever taken us up on the offer...
    Harbs

  • 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

  • How do I change view percentage in InDesign CS5?

    This seems like a silly question but I recently upgraded from CS3 to CS5 and can't find where you can type in what percentage you want to view the page at. It used to be in the bottom left corner (and still is in Illustrator CS5 and Photoshop CS5) but I can't find it in InDesign CS5. I don't want to use the preset zoom percentages, I want to be able to type in a number like 90% or 55% etc. I've search several sites and gone through every menu option but can't seem to find it. Any help would be appreciated. Thanks.

    Glad to help - I did the same thing when upgrading from CS3 to CS4! I remember the frustration...  

  • [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]";

  • Indesign CS5 is automatically altering the appearance of RGB images on the screen?

    I am working on the layout for a plant field guide. The photos are all RGB files and when placed into indesign they appear as they should. However on some pages (pages where there are lots of images) the colour automatically appears as if converted to CMYK. This appearance suddenly applys to the whole page and every image displayed.  If I drag one of these images which looks terrible in CMYK to the next page it goes back to looking like it does in RGB.
    I have tried changing the colour management of the images in Photoshop and Indesign and saving files as every possible format (jpg, png, tiff, psd, pdf etc). Makes no difference.
    When I expert the document to pdf for printing - the same thing has occured. The one page - with lots of images - has generated with the appearance of CMYK but the following page with fewer images still has bright colours (same as the RGB original file). When I print this pdf to a CMYK printer the files print as per the pdf - the page with images which appear in CMYK colour format - look dull and are not true to the flowers colours and the other page prints as per the RGB files - perfectly.
    Can anyone tell me how I can override this change in Indesign CS5? It seems to have little to do with the colour management of the images and more to do with the percentage of the page which is RGB colour images.
    Any help would be much appreciated.

    This is the first time I've posted in a help forum. This solved all my problems. Hopefully I didn't offend to many CMYK inks along the way.
    You guys are brilliant.
    I am a converted friend.
    Cheers

  • 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

  • Find /change batch in InDesign CS5

    I understand that scripts can be written to batch find/change. I see where the file is under utilities and I'm sure it's very simple to someone familiar with scripting, but I'm not a programmer so was wondering if someone would write thi
    s for me. I need to find two spaces and replace with one;
    find two periods and replace with one; find 1/4 and replace with ALT+0188; find "-ALT+188" and replace with ALT+0188
    ; find 1/2 and replace with ALT+0189; find "-ALT+189" and replace with ALT+0189; find 3/4 and replace with ALT+1090; find "-ALT+190" and replace with ALT+0190; find ".net."and replace with .net; find ".com" and replace with .com; find ".org." and replace with .org; find paragraph style "Boxed Ad" and replace with "Classified"; find format Helvetica, Bold, Center and replace with paragraph style "Bold Center".
    I'm very grateful to anyone who can help!

    This is required very minimal scripting knowledge.
    Open all document required to find change stuff and run below javascript code
                var ReplaceArray = [["  ", " "], ["..", "."], ["1/4", "ALT+0188"], ["1/2", "ALT+0189"],
                                                ["-ALT+188", "ALT+0188"], ["-ALT+189", "ALT+189"], ["3/4", "ALT+1090"], ["-ALT+190", "ALT+0190"],
                                                [".net.", ".net;"], [".com", ".com;"], [".org.", ".org;"]];
                for(j=0; j<ReplaceArray.length; j++)
                    var curArray = ReplaceArray[j];
                    ChangeInStory(curArray[0],  curArray[1])
    function ChangeInStory(find_text, change_text, findType){
        try{
            app.findTextPreferences = app.changeTextPreferences = null;
            app.findChangeTextOptions.wholeWord = false;
            app.findChangeTextOptions.caseSensitive = true;
            app.findTextPreferences.findWhat= find_text;
            app.changeTextPreferences.changeTo = change_text;
            app.changeText();
            app.findTextPreferences = app.changeTextPreferences = null;
        catch(e)
                throw (e);
            try
            app.findTextPreferences = app.changeTextPreferences = null;
            app.findTextPreferences.appliedParagraphStyle= "Boxed Ad";
            app.changeTextPreferences.appliedParagraphStyle = "Classified";
            app.changeText();
            app.findTextPreferences = app.changeTextPreferences = null;
        catch(e){
                throw (e);
           try
            app.findTextPreferences = app.changeTextPreferences = null;
            app.findTextPreferences.appliedFont= "Helvetica LT Std";
            app.findTextPreferences.fontStyle= "Bold Condensed";
            app.findTextPreferences.characterAlignment= CharacterAlignment.ALIGN_EM_CENTER;
            app.changeTextPreferences.appliedParagraphStyle = "Bold Center";
            app.changeText();
            app.findTextPreferences = app.changeTextPreferences = null;
        catch(e){
                throw (e);

  • 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

  • How do I get InDesign CS5 to stop changing my font to Minion Pro?

    With no document open, the font says Times New Roman, so that should be the default. However, pasting text into a text box from another program like Open Office Writer and then adding a carriage return (normal Enter, not Shift+Enter) causes the font to suddenly change to Minion Pro, so anything I type or paste in at that point is in Minion Pro. I'm getting tired of constantly opting out of InDesign's favorite font. What do I have to do to get InDesign CS5 to accept that I use Times New Roman and not Minion Pro?

    Let's see if we can explain this better...
    Here's what I think is happening based on what I've been able to do here to reproduce this.
    First, in the Clipboard Handling prefs the setting is to paste text only, not All Information. The TNR setting is a local override to Basic Paragraph which has been set as the default in the character panel or control panel, but [BP] itself is still set to Minion Pro.
    You can type all day in ID with settings like this and not have the font change to Minion Pro, so it is tied to the paste settings. I think what is happening is that ID must ignore any formatting in the copied text in order to make the pasted text match what is set at the cursor position and for some reason resets the default text attributes to the paragraph style definition, so when you press enter your local override default is gone, but only for that frame. I believe this is actually using the Paste Without Formatting command.
    It doesn't seem to matter if you continue to type in the same paragraph, the next one loses the override. You can make this happen using the Paste Without Formatting command after copying text you type with your default settings as an override, as well, even if the format of the copied text is already exactly the same because you typed it in the same paragraph. The trigger for this though, is the position in your text where you paste -- it only happens when you paste at the end of the existing text in your story.
    I'm not sure if this is a bug or intended behavior, though I'm leaning towards the latter as it makes some logical sense to me. Paragraph formatting for the next paragraph is picked up from the last character when you press enter as you type at the end of a story, whereas if you type on the end of an exisiting paragraph in the middle someplace, the break at the end of that paragraph is already formatted.
    Bottom line, I think the only way to make your workflow work is to make a default paragraph style with your TNR formatting eihter by editing [BP] or making a new one. I'm not sure why you didn't have success with a new style. Did you create the new style with nothing open? Did you set the formatting to be TNR? Did you also be sure to highlight this style with nothing open so that it was set to be the default?

  • Restoring Links - inDesign CS5.5 - Highlighting found links in finder

    In inDesign CS4 -
    When I was searching for and re-linking missing links within my inDesign document, I would select the link in the links panel, click the relink icon in the Links panel, and go search for my link. Once I arrived at the folder where the link was housed, either indesign or my finder would highlight (with a light gray bar) the found link which had the same filename + extension. I'm not sure if it was finder or inDesign, but I immediately found my link because it was conveniently highlighted, and then inDesign would relink any other missing links within that same folder.
    Since upgrading to inDesign CS5.5 -
    I've noticed that when I go to relink a missing file and I've found the folder it's in, my finder no longer highlights the file which has the exact same filename and extension. Does anyone know how to enable this feature, of highlighting file names within the finder when the match the name of the link being searched for? Nothing jumped out at me in inDesign preferences, or in the drop-down menu options of the links panel.
    I haven't been able to find any other forum discussions which address this.
    Any help is greatly appreciated. This was a very convenient tool that helped me find files quickly and accurately in CS4.

    That didn't fix the issue I'm having. In CS4, I could go search in any folder for my missing link and the finder would highlight (with a gray bar) the file (with the same filename + extension) once I found it. It's like the finder/inDesign would automatically select my file in the search, I clicked ok, and the link was fixed, and then it would relink other missing files in that folder as well. At that time, I was searching way outside of the parent - child heirarchy.
    Now, in CS5.5, if I get to a folder that has the missing link, it won't auto-select the file (name) for me. I have to read through all the links I have and selct the file (versus just looking for that gray-highlighted file that inDesign automatically selected).

  • Is there a way to find/change the font of numericals only, within a document in indesign?

    Is there a way to find/change the font of numericals only, within a document in indesign?

    It might not be what you need for this document, but if you were creating it from scratch, a GREP style would probably be the way to go. That way,  new figures added to the text will  automatically be styled the way you like.
    Start with a base Paragraph Style (i.e. 'Body') that all subsequent styles ('Heading' etc) are based on. Select a figure, and apply the font and any other attributes required. Select it and make a new Character Style. In your Paragraph Style, go to GREP Styles, and set it to apply the Character Style to the 'Any Digit' Wildcard.

  • Colour change in identically exported PDFs: InDesign CS5 to CS6

    Artwork turns out with a greener hue in a PDF Print document exported using InDesign CS6 trial software that has ruined a whole print run.
    This catalogue has been printed in past years using CS4 and CS5 software, each time the colours in the exported PDF proof, PDF Print file and InDesign files being accurate and matching perfectly.
    This time I used a trial of InDesign CS6 - Importing the same mother file as previous years and working on the document. When exporting the document however, despite using identical settings to export PDF files in the past, the exported PDFs turn out with a greener hue than the previous CS5 PDFs. I trialed a few different kinds of colour conversions in the PDF export window (i.e. 'no conversion' to 'convert to destination - RGB') just to see what happened -  and all turned out with the same result. The colour change is small but this was exxaggerated at print and as a result the colours
    looked drastically different from the catalogue the year before. Printing aside, (as it's a whole other ballgame), it came down to this slight PDF colour change.
    I'm wondering if anyone can help explain this - does CS6 handle colour exporting differently to CS5?

    Hi Eugene,
    Looking up the settings, they say the following:
    InDesign CS5: Unsynchronised "settings are not synchronised for consistent colour"  (odd; CS5 version is where the file exported with accurate colours)
    InDesign CS6: Synchronised "using the same colour settings for consistent colour management"   (CS6 version exported with a colour change)
    Another thing I've realised that might be an issue:
    The product images are still in RGB format (supplied by the photographer), where everything else in the artwork is in CMYK format. I've run a test export where I've converted everything to CMYK and exported it to a PDF.
    The results:
    InDesign CS5: Same colours consistently on both PDFs with RGB images and with all CMYK images.
    InDesign CS6: Green hue across PDF with RGB images in it, Correct colours in PDF with all CMYK images.
    So is this where the problem lies? The CS6 software having Synchronised colour settings shows a colour change when RGB photos are exported to PDF?
    Let me know your thoughts...

  • How can I change the import options for an Excel table in InDesign CS5.5?

    Hi,
    I have a problem with an InDesign script that works this way in ID CS4 and ID CS5, but stops working in ID CS5.5.
    What the script should do, is to change the import preferences for a table saved in an Excel file so that I can place an unformatted table into a new textFrame in my InDesign document. The Excel document is an .xlsx-File.
    function setExcelImportPrefs() {
        with (app.excelImportPreferences) {
             app.excelImportPreferences.tableFormatting = TableFormattingOptions.excelUnformattedTable;
    What the script does (or at least seems to do) is: nothing. The table that is placed into the textFrame by the script is always formatted, as this seems to be the standard preference of InDesign CS5.5 for importing tables out of excel files.
    Does anybody have a hint for me how to make the script work in ID CS5.5?

    Okay, now it is working. I had to save the XLSX-file into the older XLS format, but that seems to work quite well.
    But I won't ever understand why InDesign loses its backward compatibility from one version to the other.
    Thank you, -hans-.

  • InDesign CS5 find my serial number.

    I need to update my InDesign CS5 to CS5.5 but I need to find my serial number first. Where can I find it?

    Check your account on Adobe's website. It should be there.

Maybe you are looking for