How to prevent find and replace from finding linked files?

I have a bunch of ASP pages that I need to update in the same manner with Find and Replace. In order to do this, I open all the files, use Find and Replace, and choose to Replace All in the Source Code of Open Documents.
Pretty straightforward, right? Except, if I have any include file statements, such as this:
<!--#include file=" yadda yadda"-->
DW opens these files on its own, and updates THEM as well.
This is a very frustrating behavior. I have been through the Preferences several times and I'm just not seeing any way to turn this off.
I have tried Googling this problem, and have seen absolutely no mention of it.
Does anyone know if this annoyance can be disabled?
Thanks.

I would try selecting the specific files in the Files tab, then using "Selected Files in Site" and see what happens.
I think DW considers related files to be "open" (since you can edit them from within the main file they are related to) when that option is turned on and the files they're related to are open.

Similar Messages

  • Indesign script to find and replace from external excel file

    I have been asked to update an existing price list (set up as lots of small tables) in Indesign (500+  pages). I have been given a new Excel spreadsheet with the product codes and new prices. I am looking for some assistance on finding or creating a script that can do such a thing if at all possible to speed up the process over just copying and pasting. Does anyone have any suggestions or point me in the right direction?

    1. Your Excel conversion to FindChangeList format idea seems okay, apart from one thing: both findWhat and changeTo strings should have double quotes around them. As they are now,
    grep {findWhat:lang1"} {changeTo:"lang2} {incl...(etc.)
    the opening one after findWhat and the closing one after changeTo are missing.
    2. Your first line contains 2 definitions. Each separate definition should be on a line of its own. (This might occur elsewhere as well, didn't check.)
    3. Any double quotes inside strings will cause problems. Precede them with a backslash to 'escape' them and convert them to a literal character. I found this one:
    "(for IC5/8"V)"
    -- change to
    "(for IC5/8\"V)"
    4. Some of your strings start with double double quotes:
    changeTo:""(MITM刀具见254页 ...
    5. To prevent your problem with this order
    grep {findWhat:Inserts"} ...
    grep {findWhat:Inserts Ordering Code System"} ...
    sort your Excel list alphabetically, case preserving, in reverse order.
    You probably also want wholeWord:true, and caseSensitive:true.
    Hope this helps!

  • Tdms-files: Is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files?

    Hello,
    is it possible to prevent LabVIEW and DIAdem from creating .tdms_index files when opening/creating/editing a .tdms file?
    I think I have no benefit from the .tdms_index files because our applications create a lot of little .tdms-files (repeat measurements). With the additional .tdms_index files we have unnecessary memory consumption and it takes longer for Windows to open the containing folder. Also it´s confusing when searching for a certain file.
    Best Regards
    Daniel
    Solved!
    Go to Solution.

    Hi Baui,
    I'm afraid there's a direct way to disable creating .tdms_index file now from LabVIEW and DIAdem. You can use TDMS Advacend API in LabVIEW, which doesn't create any index file, or you can just make some simple programming and delete the .tdms_index file after closing the TDMS file. 
    This is a request for a long time, we'll consider to add this feature for TDMS in future releases.
    Yongqing Ye
    NI R&D

  • Prevent Find and Replace from closing after clicking "Replace All"

    With the latest release of Dreamweaver CC (2014.1.1), there's been a minor change to the way Find and Replace works. I use Find and Replace a lot to clean up and delete code, so I might do many searches in a row to get things tidy. With the new version however, the Find and Replace window always closes after clicking "Replace All", which is very cumbersome. I need to open it up again, and it doesn't remember the text I entered to use as a replacement.
    Does anyone know if there's a way to prevent this window from closing after doing a Replace All? The previous version of Dreamweaver would keep it open and remember the text either until I changed it or I closed Find and Replace myself.
    Any pointers that would get me a little closer to the previous version's functionality would be appreciated!

    You need to do a find/change for each code individually, but it should be scriptable to take the .csv file and use it to load the find and change values. I'd try asking this over in the scripting forum: InDesign Scripting

  • How do I find and replace text in PHP files?

    How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
    For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
    If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
    Is there a simple way around this?
    Thanks!
    I'm using CS3 on Windows Vista.

    It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
    But, if it's all source code then that won't help.  One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
    The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it.

  • Find and Replace from a list?

    I have a 400 page indesign brochure. It contains 3000 codes. I want to change those 3000 codes to links (existing code the word to click on - not the view of full url). I have a csv file with all codes (col 1) and full http link (col 2). Anyone help me with a find and replace? I have CS5.5 (very poor see) - my knowledge is pretty poor as I have not used the program for a few years. I would appreciate any help.

    Take a look here Re: FindChangebyList with strings of text? I think #12 is what you want.
    You might need to sort the order of the excel list according to the length of the word from longest to shortest.
    To do that in cell C1 type =LEN(A1)
    Copy that to the whole column apply the sort to the table from largest to smallest and then erase the whole column C save the file and it's ready for the script.
    I would have written the script differently now as my skills have improved significantly, adding a sort function in the script would be very easy but I'm very busy now.
    Trevor

  • Find and Replace across multiple PDF files

    Hello,
    The company I work for has recently changed it's name from (for example!) "Rob's Company" to "Dave's Company".
    I have a folder with several thousand PDF files where "Rob's Company" is mentioned and I want to find/replace this for "Dave's Company" in one job (as opposed to opening each file and doing a find/replace in each one).
    I am happy to purchase a copy of Adobe Acrobat in order to do this, but I'm unsure if it is capable of doing so. I know it is possible to do this for individual files, but not sure that it can do a find/replace for all files in a particular folder.
    I hope someone is able to assist me, I'd be very grateful.
    Best wishes,
    Rob

    I totally agree with you regarding keeping the source files; it's common sense isn't it! I've only worked at this company for 14 days and the vast majority of docs are years old so it would be nearly impossible to trace back the owner of the document internally and then for who their contact is at the client who originally sent it over. With staff turnover you'd probably get nowhere pretty slowly!
    Thanks very much for your redact suggestion. Is that basically where you "stick" new text over the old? The phrases to be changed are reasonably simalar in length (new text is 1 character smaller) so if there was a small gap at the end of the phrase I wouldn't loose sleep over it.
    Thanks again for your help - as I say with just 14 days in the company it would be nice to get this job done without involving too many people so it looks good to my new bosses!
    Rob

  • Find and replace string in a file using batch script

    I am writing a batch script to replace " ", with " ". The below code works but it prefixes each line with the line number and :.
    It is the last part of the line that I am trying to replace.
    E.g.
    " ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," ",
    To be replaced as
    " ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," "
    Code:
    @echo off &setlocal
    set "search=" ","
    set "replace=" ""
    set "textfile=Build_Accounts_Plan_Source.txt"
    set "newfile=Build_Accounts_Plan_Source_new.txt"
    (for /f "delims=" %%i in ('findstr /n "^" "%textfile%"') do (
    set "line=%%i"
    setlocal enabledelayedexpansion
    set "line=!line:%search%=%replace%!"
    echo(!line!
    endlocal
    ))>"%newfile%"
    type "%newfile%"
    Output:
    3:" ","BALANCE_SHEET ","ASSETS ","03","LEVEL_2 ",Asset Accounts," "
    Regards,
    Ragav.

    Did you retype the code or did you use copy/paste? Retyping is not a good idea.
    You can do this to find the cause of the problem:
    Run the modified code below.
    Use notepad.exe to open the file TempVBS.vbs in your %temp% folder.
    Mark & copy the code, then paste it into your reply.
    @echo off
    set "textfile=Build_Accounts_Plan_Source.txt"
    set "newfile=Build_Accounts_Plan_Source_new.txt"
    set Scr="%temp%\TempVBS.vbs"
    (  echo Set oFSO = CreateObject("Scripting.FileSystemObject"^)
       echo Set oInput = oFSO.OpenTextFile(WScript.Arguments(0^), 1^)
       echo sData = Replace(oInput.ReadAll, "," ^& VbCrLf, VbCrLf^)
       echo Set oOutput = oFSO.CreateTextFile(WScript.Arguments(1^), True^)
       echo oOutput.Write sData
       echo oInput.Close
       echo oOutput.Close) > %Scr%
    cscript //nologo %Scr% %textfile% %newfile%

  • Find and Replace text in several files

    Can automator do that?
    I made a website in iweb and as the ones of you that had already tried it must know, it is impossible to change the font format on the links, you have to hack the code manually, changing the .css files.
    I think a trick would be to get automator to replace the code automatically, to lock for a string of text inside a group of files and save it. I just don't know how to do it. Can anybody help?
    The most I have been able to do is to get automator to open all .css files within a folder, inlcuidng all subfolders and open them on textedit.

    I doubt anyone is going to download and look at your code. Please remember that anyone who helps you here is a volunteer, and so the onus is on you to make helping you as easy as possible to do. That means you must take the effort to pare your code down to the bare minimum that shows your problem and compiles, and then post this code here. If you do decide to do this, please use code tags by highlighting your code after pasting it, and then pressing the Code button just above the editor window.
    Good luck.

  • How to find and replace with sequential values?

    im building a website. it contains 12 main images per page and luckily according to my design the source code per page contains 12 <img> tags only (rest is background and stuff). now for many pages i keep using a particular page as template and then change each and every image by browsing and clicking. Now i want to make my work easy.
    the images that i want to add in every page are sequentially file named.  001.jpg , 002.jpg .......... and so on.
    So is there some way that i can use find and replace , to find the <img> tags and fill them all with values sequentially that is the first <img> tag containts 001.jpg and the second containts 002,jpg and so on .
    the pages are many thats why i want to make this easy
    thanks very much for help

    Will they ever do this?   I just wish Adobe would purchase TextPad and integrate it into Dreamweaver.  In TextPad, from the manual:
    Other TextPad options in the replacement string:
    \i Generate a sequence number.
    \i(N,M) Ditto, starting at N and incrementing by M.
    So beautifully simple.

  • How to do a "Find and Replace" only on html or htm documents

    I am trying to add some Java script to every page in a website that is a html or htm before the </body> tag.
    The site contains other file types and the find function is ofcourse picking those up as well. Since the site has over two-thousand pages it would be very labor intensive to click through them all.
    Any ideas would be very helpful.

    I wouldn't be worried about anything but the *.sql files.  If an asp or aspx file matches that tag pair, then you would want to add the analytics code anyhow.
    Nevertheless, the only other way I can think of to do what you want would be to sort the file list by type, and select only the *.html and *.htm files before running the find and replace against the selected files.

  • Reformatting files in Dreamweaver: Batch series of .dwr files (find and replace) consecutively

    I have to do complicated reformatting of an entire site. It's been simplified to a series of find and replace tasks for each file. Each find and replace string has been saved as a .dwr file. Currently I have to load and execute each .dwr file.
    How do you batch process or automate this task in Dreamweaver? In other words, queue up a series of .dwr files to be executed consecutively?

    OK here we go.
    This example, a simple Dreamweaver  Command Extension, will execute two Find and Replace commands in one go. (It can be any number of Find and Replace commands.)
    The first command replaces "the" and "this" with "phe" and "phis". The second command replaces <ul> ... </ul> with <ol> ... </ol>. (These of course can be any Find and Replace.)
    You need two files: a HTML file (for the  UI) and a Javascript file (for actions). I named them "Find and Replace Test.html" and "Find and Replace Test.js". (They can be any name.)
    Find and Replace Test.html
    <!DOCTYPE HTML SYSTEM "-//Adobe//DWExtension layout-engine 10.0//dialog">
    <HTML>
    <HEAD>
    <Title>Find and Replace Test</Title>
    <script src="Find and Replace Test.js"></script>
    </HEAD>
    <BODY>
    <form>
         <p>Are you sure?</p>
    </form>
    </BODY>
    </HTML>
    Find and Replace Test.js
    function canAcceptCommand() {
        return true;
    function commandButtons() {
        return new Array("Go!", "doIt()", "Cancel", "window.close()");
    function doIt() {
        dreamweaver.setUpFindReplace({
            searchString: "th(e|is)",
            replaceString: "ph$1",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        dreamweaver.setUpFindReplace({
            searchString: "<(/?)ul>",
            replaceString: "<$1ol>",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        window.close();
    Basically you can call any number of this pair of functions in the script:
    dreamweaver.setUpFindReplace(findAndReplaceObject);
    dreamweaver.replaceAll();
    Place these HTML and JS files in this directory:
    Dreamweaver App Directory/Configuration/Commands/ 
    Then in Dreamweaver, open "Insert" window. (You need to have a HTML file open in order to make the Insert window active.) At the top of the Insert window there's a category dropdown menu  ("Common" etc.). Do alt + click (ctrl + click) - then you'll see an item "Reload Extenesions" at the bottom of the dropdown. This will load this extension to DW. (Alternatively you can restart DW to load the extension.)
    Now it's ready to run the Extension. Open a HTML document you want to modify. Go to "Commands" on the menu bar. At the bottom of the dropdown there should be an item "Find and Replace Test". Select and enjoy
    Notes
    This example is set to perform the Find and Replace on the current document. You can change the scope to the entire site, or the selected files, etc, just like in the Find and Replace dialogue box. The API doc is here: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed a.html
    You can use dreamweaver.setUpComplexFindReplace(xmlQueryString) command instead. xmlQueryString is basically <dwquery> ... </dwquery> in your .dwr files, you can copy from your .dwr files. However xmlQueryString needs to be one continuous string (no line breaks), which can be a pain The doc: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed 9.html
    Command Extension general example in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6.html
    I hope all of these make sense...
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Can I do a find and replace on .cfm files only and not search .html or .txt?

    Hi.  I'm using Dreamweaver CS4.  I would like to do a find and replace through my site with Dreamweaver but I only want it to search through .cfm files.  Currently it is searching through .html and .txt files along with .cfm.  Is there a way to do a find and replace on just .cfm files?
    - Tom

    You can't do it on just one type of file. However, you can do find and replace in selected files. Ctrl-click to select the targeted files in the Files panel, and then choose Selected Files in Site from the Find In drop-down.

  • Multi find and replace

    When using Multi find and replace the system does not replace
    all files. Any suggestions?

    Hi 1motivate and welcome to the RH community.
    The in built find and replace tool (if that is what you are
    using) has some limitations and is known to have issues. Most of us
    use a third party tool. FAR and BkReplacem being two of them. My
    own personal favourite is
    FAR as it does a lot more
    than find and replace (even author help files!) and is relatively
    cheap. Others swear by BkReplacem and this is freeware.

  • How to find and replacing the path (url) given for data binding from type 'datasocket'

    Hi everyone,
    I'm sorry to pose this question as my own knowledge is still very limited.
    I have an assignment (bachelor level). We were asked to adjust a plc program in step7 so that multiple of an existing sequence could be run indepently.
    The settings for that sequence are controlled by labview. Sensor data is also viewed in labview.
    There is an existing labview VI that was made by someone else before us. It uses 'Datasocket' type for data binding. Because we would like to adjust this VI to be used with the other sequences, we would like to change the original path or URL quickly, as in a 'Find&Replace' solution. Yet the find and replace only works for objects or text, not entries in the properties.
    Can someone please tell me if there is a way to do is, without having to use shared variables, as we are not at all known with this type.
    Many thanks,
    Niels

    Dear Niels,
    Please find the attached example. I placed 5 controls on the front panel, all with a data socket URL (control 1 = URL1, control 2 = URL2 etc). Through property nodes I did the following;
    - I got a reference to the front panel
    - with this reference we can get an array of references to the controls on this front panel
    - one by one we will read the references and check the data socket URL from the control, we compare this with the URL we are searching
    - if found, stop we will use the reference to write a new URL to the control.
    Please notice the default values of the controls; it is set to search for URL3 and replace this with URL10, run the VI once and you will see that happening. I also included a sting indicator which will show you the label of the control which we find. Also a Boolean indicator in case we were not able to find the URL.
    I downsaved the VI to 8.6, I'm not sure in which version you are working, if you have 8.6 or higher you are able to open it. Hope this brings you further,
    Best regards,
    Martijn S
    Applications Engineer
    NI Netherlands
    Attachments:
    findURLexample.vi ‏12 KB

Maybe you are looking for

  • How do I find the sounds from a drum loop?

    Greetings. In Pro-Logic X, I'm using this loop and I like the "drum-loops". Is there a way that I can find out which "drum-kits/sounds" were used?   The reason I ask is because So, I can use them in MIDI perhaps. Thanks. James.

  • Backing up data on second hard drive & choosing not to backup applications

    Hi 1...I have a second hard drive that contains my iTunes music & video's. How do I get Time Machine to back up data on stored on an external disc? 2...I want to conserve space on my backup disc by not backing up the applications folder. Is this reco

  • CO validation rule for cost center

    we want system to show error message when user post to cost center other than 1111 for GL account between 540000 to 541000, how to define the validation rule?

  • Problem with a corrupt data file

    I have a user who has a corrupt outlook profile, new updates to the exchange servers are not propagating through to her account. I have created her a new profile in outlook which fixes this issue but unfortunately throws up another. Using her old cor

  • PDK Struts tags

    When trying to use the PDK Struts tags in a portlet, I receive the following error message when the portlet has been deployed to a 10g portal: [ServletException in:/WEB-INF/jsp/tiles/portal/index.jsp] action' Even with debug mode enabled on the serve