Search for scripts for file names

I have a large number of Applescript scripts and need to change a file name used in some of them. Is it possible to find all the scripts in a folder for a particular name and a list. «"I tried different solutions but no luck, for example, the shell script ' / usr/bin/mdfind - Teh" & quoted form of documentsPOSIXpath & "' kMDItemFSName = \"Receipts.txt\»»»

Recognizing any assistance received.

Try to use grep in a Terminal:

grep - r "keyword" ~/SearchFolder/

Tags: Mac OS & System Software

Similar Questions

  • search for file names with tilde character

    trying to locate all the file name containing the tilde (~) character. It is obviously special for the search as a search looking for files with this character corresponds to each file. I can't find the mechanism to quote the tilde so that Windows will search for files containing the tildes in name literally.

    You expect to be easy to find the answer, but then I found others asking the question. I can't find the answer.

    See the following article on research in Vista: http://www.vistax64.com/tutorials/75447-search-options.html.  I ' ts faily basic and probably does not cover what you need to know to make the research you are tyring to do.

    Here is an article on research options in Vista: http://www.vistax64.com/tutorials/75451-advanced-search.html.

    Here is an article on the use of advanced query options to improve searches in Vista (I think yuu might find your answer in this one): http://www.vistax64.com/tutorials/158288-advanced-searches.html.

    Here is an article with a number of advanced search options and how format the queries that may be helpful: http://windowsteamblog.com/windows/archive/b/windowsvista/archive/2007/05/09/advanced-search-techniques.aspx.

    I hope this helps.  If not go back and I'll try to find more resources or attempting to do myself to see if I can understand how do.  It seems that Mr. Wizard answered the question before I coulld end my post. The anwer to the 'why' is probably contained in the above items.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The search for file names with a tilde ("" ~ ")

    In Windows Explorer, how can I search for filenames containing a tilde? I tried the name: ~, but this seems to find all the files. I tried going to ADVANCED search and specifying, ~ * ~ *, ' ~ ', etc. and he always seems to find all files. "It's a drag, since all these tilde files are probably temporary which can be deleted.

    Sachelis Hello,

    Please see this recent thread:

    http://social.answers.Microsoft.com/forums/en-us/vistafiles/thread/f8266844-292d-4609-915F-43a99c58830e/#299602a9-5954-49cd-8873-363bc3679381

    Mr. Doug in New Jersey

  • Search for files using scripts?

    Is it is possible to search for files using Photoshop scripts?

    I'm looking for "cat_picture.jpg" but I don't know exactly which folder it is in.  Are there commands that will search for and return the path of this file for me?

    Thank you

    I had copied the functions of xtools/xlib/stdlib.js and munged some of the changes. This is a test version that works:

    function getFolders(folder) {
      if (folder.alias) {
        folder = folder.resolve();
      }
      return folder.getFiles(function(f) { return f instanceof Folder; });
    };
    
    function findFiles(folder, mask) {
      if (folder.alias) {
        folder = folder.resolve();
      }
      var files = folder.getFiles(mask);
      var folders = getFolders(folder);
    
      for (var i = 0; i < folders.length; i++) {
        var f = folders[i];
        var ffs = findFiles(f, mask);
        // files.concat(ffs); This occasionally fails for some unknown reason (aka
        // interpreter Bug) so we do it manually instead
        while (ffs.length > 0) {
          files.push(ffs.shift());
        }
      }
      return files;
    };
    

    Use:

    var f = findFiles(Folder('~/Desktop/PSE9_CIB'), '*.psd');
    $.writeln(f);
    
  • Search for files in a folder of some

    Hello

    I want to create a smart collection (or search) with files, which are located in the folder with a given name. I have hundreds of files called 'Selected' and only photos within these folders should be found. But the only search option, I can find is "Filename" - How do I search for files with a certain string in their directory string?

    Thank you

    Konrad

    This script should select the documents in the selected files. Make sure that the top-level folder is selected before running the script.

    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    selectedFind = MenuElement.create("command", "Find in Selected Folders", "at the end of Thumbnail");
    }
    selectedFind.onSelect = function () {
       findInSelectedFolders();
       }
    function findInSelectedFolders(){
    var win = new Window('dialog',"Find in Selected Folder");
    win.orientation = "column";
    win.pnl1 = win.add('panel', undefined, undefined, {borderStyle:"black"});
    win.g1 = win.pnl1.add('group');
    win.title = win.g1.add('statictext',undefined,'Custom Find');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 = win.pnl1.add('group');
    win.g5.orientation = "row";
    win.g5.alignment="left";
    win.g5.st1 = win.g5.add('statictext',undefined,'Folder Name');
    win.g5.et1 = win.g5.add('edittext',undefined,'Selected');
    win.g5.et1.preferredSize=[150,20];
    win.g10 = win.pnl1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment="left";
    win.g10.st1 = win.g10.add('statictext',undefined,'Find ...');
    win.g10.et1 = win.g10.add('edittext');
    win.g10.et1.preferredSize=[200,20];
    win.g100 = win.add('group');
    win.g100.orientation = "row";
    win.g100.alignment="center";
    win.find = win.g100.add('button',undefined,'Find');
    win.find.preferredSize=[100,30];
    win.cancel= win.g100.add('button',undefined,'Cancel');
    win.cancel.preferredSize=[100,30];
    win.find.onClick=function(){
      if(win.g10.et1.text == ''){
          alert("You haven't entered anything to find!");
          return;
          }
      win.close(1);
    var folderList = [];
    var fileList = [];
    var CollectionFiles = [];
    var Path =Folder(app.document.presentationPath);
    var REX = new RegExp(win.g10.et1.text,"gi");
    folderList = FindAllFiles(Path,folderList,new RegExp(win.g5.et1.text.toString(), "i"));
    for(var a in folderList){
        fileList = folderList[a].getFiles();
        for (var f in fileList){
            if(fileList[f] instanceof File){
                 if(fileList[f].name.match(REX)) CollectionFiles.push(fileList[f]);
                }
            }
    
    }
     if(!CollectionFiles.length){
         alert("No match found");
         return;
         }
     var Name = "Found in " + win.g5.et1.text.toString();
     var foundFiles = app.createCollection(Name);
     for(var c in CollectionFiles){
         app.addCollectionMember(foundFiles,new Thumbnail(CollectionFiles[c]));
         }
     app.document.thumbnail = foundFiles;
    }
    win.center();
    win.show();
    }
    function FindAllFiles( srcFolderStr, destArray, regEX ) {
     var fileFolderArray = Folder( srcFolderStr ).getFiles();
     for ( var i = 0; i < fileFolderArray.length; i++ ) {
      var fileFoldObj = fileFolderArray[i];
      if ( fileFoldObj instanceof File ) {
      } else {
                try{
               if(fileFoldObj.name.match(regEX)) destArray.push( Folder(fileFoldObj) );
               }catch(e){$.writeln(fileFoldObj);}
       FindAllFiles( fileFoldObj.toString(), destArray, regEX );
      }
     }
     return destArray;
    }
    
  • GetFirstFile and GetNextFile while searching for files

    In LabWindows 7.0 "C" I use a wild-card building to search for files in a folder called "PAT_DISKS" below as shown:

    strcpy (work, "c:\\DEVELOPMENT\\PAT_DISKS\\? MS? _DSK_PAT");
    is = GetFirstFile (work, 0, 0, 0, 0, 0, 1, name);
    is = GetNextFile (name);

    There are at least three folders corresponding to the criteria of 'PAT_DISKS', but "GetNextFile" are not.

    Is this a bug in LabWindows CVI 7.0?

    Thank you, your answer helped me to find the problem.   As usual, it's between the keyboard and the Chair.  Without realizing it, I was pointing to another folder that I created earlier for debugging purposes.  There was actually only a subfolder so "GetNextFile" function work properly.

    Rob

  • Search for files and folders

    Help instructions searching for files and folders said to click on START and then click on SEARCH - the problem is that I can't find NO SEARCH when I after I click START

    go to the search-search-files and folders-file name - click search - and the named file should appear.

    or will display the files and folders-leave white - click search all records.

  • Windows 7 can search for files containing a specific string that includes punctuation

    I have a documentation for a programming language which is in the form of html on my machine and search for files that contain the string "${1}".

    However if I type that in the search box windows instead seeks any file containing the string '1' in its content or its file name or a folder (which gives me 10240 results!)

    Research I try it is possible with a different syntax (escape the $ and brackets to indicate that they are part of the search maybe string)?

    Thank you

    MOG

    Hi Mog,

    Because the question you posted is related to search for files containing a specific string, it would be better suited in the MSDN forum. Please post your question in the following MSDN forum:

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threads

  • When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    Thank you!

    What you can do is to do a search, right-click on any column heading (for example name, folder, etc.), and then click "Folder path" from the list that appears.  You can also click to turn off the folder.  The next time you're looking for in this area, this column of path of the folder should appear.  You can drag the columns in a different order also.

  • Search for files by using the Start button

    I've lost the ability to search for files by using the Start button.  I can enter a file name, but always get a response "nothing found".  I know I did something back a couple of weeks, but don't know what I did to turn it off. Help!

    Thank you!

    Take a look at my search installation tips.  If you are in these settings, you can make sure search is enabled and if necessary you can use the 'reconstruction' of the for button to rebuild your search system.

    http://Skeene.NET/tech/boost-Windows-search-in-two-steps/

    Also, there is an automated troubleshooting tool that tries to find and fix any problems with your search system.  You can go for it here:

    http://support.Microsoft.com/mats/windows_search/

  • How we can search for files in the Webcenter 11.1.1.6 content?

    Hello

    I have a requirement for a client where they want to use the advanced search of the AAU to search for files (not articles).

    Version: Webcenter content 11.1.1.6

    Contribution using folder_g files

    I founded a model pre-built for searching for files. The name is COLLECTION_GET_SEARCH_FORM


    Here is an example of this model and it works

    http://euedocs.emersonprocess.co.UK/idcplg?IdcService=COLLECTION_GET_SEARCH_FORM

    When I try this service on my own content instance Webcenter, the model is loaded. But when I click on search, nothing happens.

    The drop-down lists containing ' Contains/pairing /...» "they are also not responsible.

    I did some research on the Support of Oracle and I created this article:

    Limits for fast searching of the Collaboration of records(1071778.1)

    https://support.Oracle.com/epmos/faces/UI/km/SearchDocDisplay.JSPX?returnToSrId= & srnum = & _afrLoop = 418199051953706 & type = c...

    I'm still stuck on this issue. What configurations are absent?

    Is someone can help me?

    Thank you very much.

    I contacted support. Here's the answer:

    Hello

    The feature you're looking for is something that is not currently present out-of-box.

    He used to work in the classic configuration only, the way back.

    And 11 g, classic layout no longer exists.

    This is a request for development with our development team.

    Bug 6488476 - INCLUDE "SEARCH FOLDER of HIERARCHY" AS SEARCH OPTION

    Thank you

    Fatima zahra

    Thank you SrinathMenon for your reply also.

  • Windows XP Explorer can perform a file search based on several search criteria? Try to search for files that contain certain words in the content of the file. The basic functionality seems to include the ability Word or a single sentence.

    Search for files using several search criteria.

    Native XP research capacity is quite limited. Try the free Agent Ransack instead. MS - MVP - Elephant Boy computers - don't panic!

  • Search for files and folders in XP

    Simple search for files and folders in XP do not work. I can't find a string in a file. It works perfectly in 2000 and NT. I have admin rights and I am an owner of these files.  Why XP can't look inside files?

    Cannot find the files containing the text...

    http://www.dougknox.com/XP/scripts_desc/xp_fix_search.htm

    Using the "a word or Phrase in the file" search criterion may not work
     http://support.Microsoft.com/default.aspx?scid=KB; EN-US; Q309173

    Search for content search not all Types of files for the specified string
    http://support.Microsoft.com/default.aspx?scid=KB; EN-US; Q309447

    Another response of the community of Windows XP newsgroups

  • a way to not search for files in windows xp?

    Is there a way to not search for files in windows xp?

    You try to use the Windows Search 4.0 on your Windows. It accelerates the research and you will find the option to omit certain folders or locations where you do not want to search the files of Windows.

    You can download Windows search through Windows updates, or you can download it from http://www.microsoft.com/windows/products/winfamily/desktopsearch/default.mspx. More information about windows search, you'll have thie site and some more available under it liks.

  • Search for files based on the flow

    Hi, I would like to be able to search for specific files mp3 and m4a files based on their bitrate, IE search for files with a bitrate to 128KBit.

    I don't know, but is it possible under Windows Vista, or do I need another tool to do?

    Thank you

    Hello trotskyicepick,

    Windows Search does not include a searchable property for the bitrate, but Windows Explorer can indicate the rate on view Mp3 files.  For example, you can sort and filter the search results by bit rate and group your files in this way.

    For example, if the files in question are in your folder of music and its subfolders, click music in the left pane of Windows Explorer.  Now paste this query into the search engine:

    ext:MP3

    Now, right-click on a column heading in the right pane and add the property of spleen in the view. Click the bitrate column header to sort the display rate.  Now click the drop down menu on the same header and choose "near CD quality' in the list.  This filter the search results so that only files recorded to 128 or more appear.

    Unfortunately, the Vista does not support the M4a format, so speeds of transmission of these files are not visible in Windows Explorer.

    Mr. Doug in New Jersey

  • Search for files hidden in files

    Option to search for files and folders hidden in folders in advance.

    Hello

    These should help:

    How to view hidden files in Windows Vista
    http://www.bleepingcomputer.com/tutorials/tutorial130.html

    Search and find all files including system files and hidden
    http://www.mydigitallife.info/2006/05/07/search-and-find-all-files-including-hidden-and-system-files/
    ---------------------------------------------------------------------

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

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

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for