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);

Similar Messages

  • Batch processing InDesign CS5 files

    When I select either individual InDesign files or the entire folder to batch process to a pdf I get a message that says that the InDesign files can't be found or opened. It initially wanted to launch ID CS4 so I uninstalled that thinking that was the problem. Acrobat still will not batch create pdfs saying the application can not be found. I can create a pdf directly from the ID file but because I have llmost 300 ID files to convert I would really prefer to be able to batch create these pdfs. I am using Acrobat 9.0. Help!

    To get a PDF, via Acrobat, from a non-PDF file format the file format must be supported.
    Acrobat has various ways to take supported file formats and provide a PDF.
    Looking at what is supported by PDFMaker
      (http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html)
    and at what is supported for direct file conversion
      (http://helpx.adobe.com/acrobat/kb/supported-file-formats-acrobat-reader.html)
    the InDesign file formats are not listed.
    Based on this I'd say you are going to have to use InDesign's internal process to get PDF from the InD files.
    Be well...

  • Rules move when changing length in InDesign CS5

    Whenever I change the length of rules in CS5, the rule will then proceed to jump around on the page. Is this some simple setting I'm overlooking? Really slows down workflow when you have to change a rule length and then go and move the rule back to where it was. Any help will be appreciated. Thank you.

    How large a change are wi talking about here? Small enough that it might be accounted for by something like an end cap on the stroke, or some larger random number?
    Is it happening in all files, or just this one? If it's just this one, try Remove minor corruption by exporting but if it happens in all files and trashing the prefs didn't work I'm stumped for the moment. Can you post a link to a sample?
    Just for fun, set Live Screen Drawing to Delayed. I don't think it will make a difference if you aren't using the mouse, but it's worth trying.
    And are you using the Selection tool (black arrow) or Direct Select tool (white arrow), to select the rule?

  • [AS] CS3 Find -Change inserting soft return instead of hard

    Can anyone help identify why this script doesn't work? i want it to replace multiple returns with a single paragraph return. It's replacing with a soft return rather than a hard return.
    I copied and pasted the find grep and change grep fields into the script. I even tried it by typing "\r" into the change grep field. Any thoughts? Much appreciated!
    tell application "Adobe InDesign CS3"
    --Clear the find/change preferences.
    set find grep preferences to nothing
    set change grep preferences to nothing
    set find text preferences to nothing
    set change text preferences to nothing
    --Set the find options.
    set include footnotes of find change grep options to false
    set include hidden layers of find change grep options to false
    set include locked layers for find of find change grep options to false
    set include locked stories for find of find change grep options to false
    set include master pages of find change grep options to false
    --delete multiple graphs
    set find what of find grep preferences to "~b~b+"
    set change to of change grep preferences to "
    set myStory to parent story of item 1 of selection
    tell myStory
    set myFoundItems1 to change grep
    end tell
    set find grep preferences to nothing
    set change grep preferences to nothing
    end tell

    Shane, thanks! This worked. What I meant to have written was that when copying "~b" from the find/change field in InDesign and pasting into Script Editor, and saving, it converted it automatically to a hard return. I didn't try it manually because sometimes the obvious is elusive! (to me at least)
    Thanks again.
    Jim

  • Trying to find the Find/Change queries

    Okay I thought I knew where these were.  I've looked in
    C:\Users\phyllis\AppData\Local\Adobe\InDesign\Version 6.0\en_US\Caches
    There are files there called FindChangeData and FindChangeDataTmp, but writing them into the folder for Version 7.5 doesn't do anything.
    So I think I'm looking in the wrong place.  I'm trying to move all the find/change queries into InDesign CS 5.5.  Can someone point me to them?
    Thanks, Phyllis

    try C:\Users\<USER>\AppData\Roaming\Adobe\InDesign\<Version #>\<Language>\

  • Acrobat 9 Pro - Batch Create Multiple Files from InDesign CS5 files

    When attempting to batch create PDFs from Indesign CS5 files using Acrobat Pro 9's File>Create PDF>Batch Create Multiple Files ... option the operation fails with the error 'Could not find the application that created this file: [path to file] Please select a file created by an application that resides on your computer.' as shown in the screenshot below:
    Acrobat 9 Professional was bundled with Creative Suite 5 Design Standard so shouldn't this work? My machine is running OS X 10.6.7, Acrobat Pro 9.44 and InDesign CS5 7.04.
    Any help to solve this issue would be most gratefully received - this feature had previously saved me a lot of time on my old machine with 10.5.8, Acrobat Pro 9 and CS4.

    I have uploaded the files and shared them.  These are the links
    Grade 11 Maths Standardisation Project Paper 2 2013.doc
    https://files.acrobat.com/preview/9694310d-ca7f-4919-883d-c53b36215d89
    Grade 11 Maths Standardisation Project Paper 2 Analysis Grid 2013.doc
    https://files.acrobat.com/preview/97da9e5f-d412-4d25-9bbc-d1a525d90826
    Grade 11 Maths Standardisation Project Paper 2 Diagram Sheet 2013.doc
    https://files.acrobat.com/preview/f50dd62e-af04-4060-85c5-fa81ce6803d8
    Grade 11 Maths Standardisation Project Paper 2 Formula Sheet 2013.doc
    https://files.acrobat.com/preview/7fc6007b-aaa6-4d65-9a8c-bf99818474a5
    Grade 11 Maths Standardisation Project Paper 2 Marking Guidelines 2013.doc
    https://files.acrobat.com/preview/b3a715bb-3683-48df-b0ec-3d17442275be
    Grade 11 Maths Standardisation Project Paper I Analysis Grid 2013.docx
    https://files.acrobat.com/preview/ab62e6b6-0261-434e-8a2f-382f74335685
    The first file is the problem file.  If you create this file separately, Acrobat will convert it perfectly.  But "Batch create multiple files" and the graphics are deconstructed on page 8

  • 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).

  • Batch change shapes in InDesign to CMYK?

    Hi there,
    Is there a way to change batch (600shapes) shapes from RGB to CMYK within InDesign?
    Thanks

    You can also convert all colors both swatches and unnamed colors via a simple script. In AppleScript it would be:
    tell application "Adobe InDesign CC 2014"
        repeat with x in every color of active document
            try
                set space of x to CMYK
            end try
        end repeat
    end tell
    But you can also convert all color to CMYK when you export to PDF, which is the more flexible approach.

  • 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 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...  

  • 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

  • ICal 5.0 ignores meeting acceptances ?!

    Problem Description I send out meeting invitations to other colleagues within my organization (Exhange 2010 server) from iCal 5.0 (Lion 10.7.1).  When people are sending their reply, I can see the "accepted" in the e-mail subject, but double-clicking

  • Java Technologies release date

    Hi, Any idea where I can find the list of java technologies and their release date? (either together or individually) Thanks in advance

  • Server Monitor Email Notification settings

    Ciao! Email notification settings in Server Monitor, how does this work and needs to be setup? Do I have setup a email account in the Server to use this feature or do I just enter the following fields: From: To: and the server does the rest, which I

  • What can I do with this error? Error de renderizaci√≥n de v√≠deo: -50

    I tried to share a video, but I have this error all the time, so what can I do? Error de renderización de vídeo: -50

  • How to Synchronize mappings in OMB?

    Hi all, I have several mappings with a pluggable mapping operator in it. In the pluggable mapping I have made several changes. Can I use OMBRECONCILE to make all mappings to pick up those changes? In the Design Center I would use Synchronize, but how