How to search package contents?

Is there any way to get Finder to search package contents?
I'm trying to find some duplicate audio files that are buried in the Media folders inside some GarageBand files. I know I can use the contextual menu to "Show Package Contents", but I don't want to search each of them manually.
I've tried searching for visible or invisible (even though I don't think package contents actually qualify as invisible files). Anyhow, that didn't work. I also tried searching using the "file exists" criterion, but no dice.
I can see the file right there in the Media folder, and I can't get Finder to even recognize that it's there, let alone find any duplicates. This is pretty frustrating. I'd appreciate any help.
Thanks!

Cool!
I DL'd EasyFind, installed it, and gave it a try. It works like gangbusters, it's dirt simple, completely intuitive, and FAST!! No more dealing with that stupid Finder that forces me to select "Name" as the preferred search criterion every time I want to search for a filename...which accounts for >95% of all my searches.
Problem solved. Thanks!

Similar Messages

  • Why do I keep losing audio/recorded tracks and SFX in my projects? I have tried: Saving as archive file/searching package contents etc. to no avail. Can anyone help?

    Why do I keep losing audio/recorded tracks and SFX in my projects? I have tried: Saving as archive file/searching package contents etc. to no avail. Can anyone help? It keeps telling me 'Audio file not found', and seems to be different tracks in the same project each time too.

    iamthewaughrus wrote:
    I also have this problem using Garageband in a school network situation when students open their project on one station, save it to their network drive, and later open it at a different station.  90% of the time there will be no issue, but sometimes audio files are lost. (Garageband '11, iMacs)
    That sounds like it might be a failure of the students to perform a Save As and check Archive Project when they do. This asks GB to pull all the files it needs into the associated .band document rather than point to them externally (and then risk not having them be there).

  • How to restore package contents for preview.app after Mac OS X Lion upgrade

    since installing Mac OS X Lion I have been totally unable to run Preview.app. After having attempted to troubleshoot the problem I discovered that the package contents for the Preview application no longer existds on my hard drive. Does anyone know where I can obtain a another copy of the preview application? or how I might go about restoring the package contents for Preview in order to run Preview.app?

    Use Pacifist to extract it from the InstallESD.dmg residing inside the Install Mac OS X Lion.app.

  • How to search the content of TPL files?

    Hi. I have a folder with hundreds of template "tpl" files that I'm needing to search the file contents of but using the regular search of that folder is unable to search the content of the tpl files, is it possible to do so?
    Thanks!,
    Wesley

    I assume there's not a "scan all files" with Spotlight?
    I don't think that would be possible in the specific case of content searches. Here's my understanding:
    EasyFind searches the files themselves when it looks for content, which makes it slow but very flexible.
    In contrast, Spotlight searches a pre-existing index when it looks for things - it can be instructed to search the index in various ways, but if the desired information is not in the index in the first place, it won't be found. Indexing the content of every file in the system is not feasible, so only the contents of certain file types get indexed. I found the following in [this Wikipedia article|http://en.wikipedia.org/wiki/Spotlight_%28software%29]:
    Aside from basic information about each file like its name, size and timestamps, the mdimport daemon can also index the content of some files, when it has an Importer plug-in that tells it how the file content is formatted. Spotlight comes with importers for certain types of files, such as Microsoft Word, MP3, and PDF documents. Apple publishes APIs that allow developers to write Spotlight Importer plug-ins for their own file formats.[3]
    So unless you'd care to write your own Spotlight Importer plug-in for tpl files, I think you are out of luck!

  • How to search the content in a Table

    Hi all,
        How can i search the content in a table. is there any UI Element is there to do this? Can any body give me any sample code for this
    regards,
    VJR

    Hi,
    you gotta do that programmatically,
    here is a sample code:
    int sizeOfstudent = wdContext.nodeCtx_vn_student().size();
    //Ctx_vn_student is the node associated with the table ie its dataSource property
    String filtername = wdcontext.currentContextElement.getSName();
    //sName is the name to be searched , it is a context attribute
              for(int i = sizeOfstudent-1;i>=0;i--)
                   String matchValue = recNode.getElementAt(i).getAttributeAsText("Name");
    //get the name of 1st record(in table) or 1st elememnt in node, "Name" here is value attribute of that node
    //so we are fetching its value and comparing it like..
                   if(matchValue.equalsIgnoreCase(filtername))
                        //here you can add the action to be taken on mathing name                }
    hope it helps
    regards

  • [SOLVED]How to search package name only when using yaourt

    I often install a AUR package by yaourt term, but it does not only search terms in package name but also package description, since there are so much packages in AUR, it produce many pages of items, and it can not support more to page one screenful at a time, It
    become difficult to get the right choice,
    Thank you in advance!
    Last edited by netawater (2013-06-14 00:47:06)

    Hey, that's one thing I actually know how to do with regexes! All package descriptions have some spaces at their beginning, the package names themselves have not, so you can just use inverted grepping like so:
    $ pacman -Ss test | grep -v '^ '
    core/perl 5.10.1-5 (base)
    extra/fprint_demo 0.4-2 (fprint)
    extra/ghc 6.12.1-2
    extra/haskell-hunit 1.2.2.1-1
    extra/haskell-quickcheck 2.1.0.3-1
    extra/junit 4.7-1
    extra/kdesdk-kpartloader 4.4.0-1 (kde kdesdk)
    extra/libxtst 1.1.0-1
    extra/memtest86+ 4.00-1
    extra/mono-tools 2.6.1-1
    extra/openoffice-base 3.2.0-1
    extra/openoffice-base-beta 3.2.0_ooo320_m12-1
    extra/perl-test-pod 1.41-1
    extra/python-nose 0.11.1-1
    extra/qemu-kvm 0.12.2-1
    extra/testdisk 6.11.3-2
    extra/unarj 2.63a-2
    extra/xbill 2.1-6
    xyne-any/reflector 5.0-2
    community/buildbot 0.7.11p3-1
    community/cppunit 1.12.1-1
    community/cxxtest 3.10.1-3
    community/dsniff 2.4b1-15
    community/gtk-aurora-engine 1.5.1-1
    community/gtkperf 0.40-3
    community/java-jdom 1.1.1-1
    community/lib32-libxtst 1.1.0-1 (lib32)
    community/perl-test-base 0.59-1
    community/perl-test-deep 0.106-1
    community/perl-test-differences 0.500-1
    community/perl-test-exception 0.29-1
    community/perl-test-manifest 1.23-1
    community/perl-test-mockobject 1.09-1
    community/perl-test-nowarnings 1.01-1
    community/perl-test-tester 0.107-1
    community/perl-test-warn 0.21-2
    community/phoronix-test-suite 2.4.0-1
    community/pmtools 20100123-1
    community/reflector 5.0-2
    community/stress 1.0.0-2
    community/typespeed 0.6.5-2
    arch-games/mangler-snapshot 1.1.20100116-3
    arch-games/ultimatestunts 0.7.5.1-1
    This still shows the repos and the versions (nothing cut wouldn't be able to handle though). It works fine with pacman as you just saw, I can't guarantee for yaourt as I don't have it installed.
    Edit: Hm… I just realized that this still displays the results where 'test' only occured in the package description. Give me some time to figure this out.
    Edit 2: Another grep for 'test' would solve it:
    $ pacman -Ss test | grep -v '^ ' | grep test
    extra/memtest86+ 4.00-1
    extra/perl-test-pod 1.41-1
    extra/testdisk 6.11.3-2
    community/cxxtest 3.10.1-3
    community/perl-test-base 0.59-1
    community/perl-test-deep 0.106-1
    community/perl-test-differences 0.500-1
    community/perl-test-exception 0.29-1
    community/perl-test-manifest 1.23-1
    community/perl-test-mockobject 1.09-1
    community/perl-test-nowarnings 1.01-1
    community/perl-test-tester 0.107-1
    community/perl-test-warn 0.21-2
    community/phoronix-test-suite 2.4.0-1
    arch-games/ultimatestunts 0.7.5.1-1
    Still, it's not that pretty to write the same thing twice. If you really want to do it like this, I suggest you make it a function in your ~/.${SHELL}rc.
    Last edited by Runiq (2010-02-27 08:36:11)

  • How to search file contents in finder?

    How do I search for file contents in finder? All I see is the option to search "This Mac" or "Edited."

    Under the partial results appearing under the search box is a + icon (next to save).  To see it, click on the toolbar somewhere so the results popup clears.  Then you can define your search.

  • HT2954 How to search the content in Mac mail system?

    I receive a lot of emails each day, some of the are dumped in the inbox. It is natural to search them later by typing some keywords. But the search engine performance is very bad compared to the the one of Gmail. I typed the same words, Mac mail showed there is no results. But Gmail gave almost all of them.

    Hi, for my money, Spotlight is the worst serch engine since "Don't Find this.app"
    But, are there options showing for From, To, Content & such?

  • How to search text content of csv file

    I am, unfortunately, new to Macs and Mac OS X.  Please forgive my rudimentary terminology.  I use .csv files in my work, and I need to be able to search through a directory of them for all that contain a particular bit of text.  I have tried using the search box in Finder, and limiting my search to the particular folder containing the .csv files of interest.  I also have limited the search by selecting the options next to the search folder, and selecting the search criterion of "Contents" and typing the term I am seeking in the "contains" box.  This has not given me any results.  Is there another way to find what I am seeking?

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • How to search text content of scanned Documents in DMS

    hello,
    i need to scan the legacy document and put it in to DMS.
    After that i want to search the scanned document using the Trex search.
    I want to know how to achive it as scaaed document are as like images and we can not search the text in images.
    Any helpfull ideas are welcome..
    regards
    shiv

    Hi Alfredo,
    Thanks for reply..Will you please explain in brief what are the  OCR program and workflow.
    Will you please send me any docs on [email protected]
    Thanks
    shiv.

  • How to search the contents of emlx files in 10.7 Lion ?

    Hi,
    Since Apple Mail in 10.7 leaved some messages in a Mail Lost+Found folder it would be nice to find out which of those messages might also exist in the active mailboxes and since Apple Mail cannot import these Lost & Found mails (unless manually opened and sorted in Mail), it would be handy to do a quick search for text in these messages. Why does no Search options ever works when needed in Mac OS X ? EasyFind could not find anything either. Reindexing did not help. Raw content serach in the Finder does not help. Why cannot the Mac system be a little helpful when it comes to searching?

    Yes, your conclusion seems logical, indeed, but I am copying text from an opened emlx file and even if I put it on my desktop and do a Finder search; a Spotlight search or a search via EasyFind, none of them actually find the file ... . Which may lead to the conclusion that I am doing something wrong, but I do not really think so ... .
    I now even created a new folder on the desktop and dragged the emlx message from which I choose a word and try to search it with EasyFind with no success, but I eventually managed to find it through Spotlight now, but Spotlight does not find the file in the Mail Lost+Found folder. Which makes clear this is related to permissions of the files in my own home folder that Lion has given them. And, yes, the solution is that the folder where the emlx file is stored within the Mail Lost+Found folder has no read permissions for anyone but the owner.
    Problem solved. Have to verify this on other computers (but the permissions were not handled correctly somewhere back through history or when converting the messages from 10.6.8 ...).

  • How to search a content item based on content id?

    I'm having a requirement to search a document based on an Id. (something similar to KB search based on KB id)
    I'm aware that a document uploaded to publisher has two Id's that get generated
    1) UUID 2) ITEMID (DA_*****)
    I'm planning to develop a portlet to search documents based on it's Id's
    I have the following queries.
    1) Can i make use of the itemid (DA_****) to search? But i dont find any IDK API to do that. am i missing some thing here?
    2) I found that by making use of pcs database we can get UUID from the ITEMID, is that a right approach to get hold of a content item?
    3) Is there any other better approach?
    Guide me
    Thanks,
    Bharat

    You can use InDesign for this.

  • How do I search the content inside a single email?

    I'm new to the iPad with the recent purchase of my iPad 3. I enjoy using Apple's Mail app. And I know how to search the contents of "all emails. "But how do I search the text content of a particular email? I am talking about one single email here. Again, I know how to search ALL emails -- I'm not asking about that. How do I search the content of just one email?
    This is a logical question, but I'm surprised no one is asking it. Sometimes we receive long emails. And we want to search for a keyword within that given long email. So how do we do that on the iPad with Apple's Mail?
    Thank you.

    Sorry, but you don't as it's not a feature of the Mail app on iPad, iPhone or iPod Touch.
    I guess the reason you don't see lot's of inquiries on this is there's not demand for this particular feature, but feel free to leave feedback with Apple, via the following link:  http://www.apple.com/feedback/ipad.html

  • How to search for particular string in array?

    I am struggling to figure out how to search array contents for a string and then delete the entry from the array if it is found.
    The code for a program that allows the user to enter up to 20 inventory items (tools) is posted below; I apologize in advance for it as I am also not having much success grasping the concept of OOP and I am certain it is does not conform although it all compiles.
    Anyway, if you can provide some assistance as to how to go about searching the array I would be most grateful. Many thanks in advance..
    // ==========================================================
    // Tool class
    // Reads user input from keyboard and writes to text file a list of entered
    // inventory items (tools)
    // ==========================================================
    import java.io.*;
    import java.text.DecimalFormat;
    public class Tool
    private String name;
    private double totalCost;
    int units;
      // int record;
       double price;
    // Constructor for Tool
    public Tool(String toolName, int unitQty, double costPrice)
          name  = toolName;
          units = unitQty;
          price = costPrice;
       public static void main( String args[] ) throws Exception
          String file = "test.txt";
          String input;
          String item;
          String addItem;
          int choice = 0;
          int recordNum = 1;
          int qty;
          double price;
          boolean valid;
          String toolName = "";
          String itemQty = "";
          String itemCost = "";
          DecimalFormat fmt = new DecimalFormat("##0.00");
          // Display menu options
          System.out.println();
          System.out.println(" 1. ENTER item(s) into inventory");
          System.out.println(" 2. DELETE item(s) from inventory");
          System.out.println(" 3. DISPLAY item(s) in inventory");
          System.out.println();
          System.out.println(" 9. QUIT program");
          System.out.println();
          System.out.println("==================================================");
          System.out.println();
          // Declare and initialize keyboard input stream
          BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
          do
             valid = false;
             try
                System.out.print(" Enter an option > ");
                input = stdin.readLine();
                choice = Integer.parseInt(input);
                System.out.println();
                valid = true;
             catch(NumberFormatException exception)
                System.out.println();
                System.out.println(" Only numbers accepted. Try again.");
          while (!valid);
          while (choice != 1 && choice != 2 && choice != 9)
                System.out.println(" Not a valid option. Try again.");
                System.out.print(" Enter an option > ");
                input = stdin.readLine();
                choice = Integer.parseInt(input);
                System.out.println();
          if (choice == 1)
             // Declare and initialize input file
             FileWriter fileName = new FileWriter(file);
             BufferedWriter bufferedWriter = new BufferedWriter(fileName);
             PrintWriter dataFile = new PrintWriter(bufferedWriter);
             do
                addItem="Y";
                   System.out.print(" Enter item #" + recordNum + " name > ");
                   toolName = stdin.readLine();
                   if (toolName.length() > 15)
                      toolName = toolName.substring(0,15); // Convert to uppercase
                   toolName = toolName.toUpperCase();
                   dataFile.print (toolName + "\t");
                   do
                      valid = false;
                      try
                         // Prompt for item quantity
                         System.out.print(" Enter item #" + recordNum + " quantity > ");
                         itemQty = stdin.readLine();
                         // Parse integer as string
                         qty = Integer.parseInt (itemQty);
                         // Write item quantity to data file
                         dataFile.print(itemQty + "\t");
                         valid=true;
                      catch(NumberFormatException exception)
                         // Throw error for all non-integer input
                         System.out.println();
                         System.out.println(" Only whole numbers please. Try again.");
                   while (!valid);
                   do
                      valid = false;
                      try
                         // Prompt for item cost
                         System.out.print(" Enter item #" + recordNum + " cost (A$) > ");
                         itemCost = stdin.readLine();
                         // Parse float as string
                         price = Double.parseDouble(itemCost);
                         // Write item cost to data file
                         dataFile.println(fmt.format(price));
                         valid = true;
                      catch(NumberFormatException exception)
                         // Throw error for all non-number input (integers
                      // allowed)
                         System.out.println();
                         System.out.println(" Only numbers please. Try again.");
                   while (!valid);
                   // Prompt to add another item
                   System.out.println();
                   System.out.print(" Add another item? Y/N > ");
                   addItem = stdin.readLine();
                   while ((!addItem.equalsIgnoreCase("Y")) && (!addItem.equalsIgnoreCase("N")))
                      // Prompt for valid input if not Y or N
                      System.out.println();
                      System.out.println(" Not a valid option. Try again.");
                      System.out.print(" Add another item? Y/N > ");
                      addItem = stdin.readLine();
                      System.out.println();
                   // Increment record number by 1
                   recordNum++;
                   if (addItem.equalsIgnoreCase("N"))
                      System.out.println();
                      System.out.println(" The output file \"" + file + "\" has been saved.");
                      System.out.println();
                      System.out.println(" Quitting program.");
            while (addItem.equalsIgnoreCase("Y"));
    // Close input file
    dataFile.close();
       if (choice == 2)
       try {
          Read user input (array search string)
          Search array
          If match found, remove entry from array
          Confirm "deletion" and display new array contents
       catch block {
    } // class
    // ==========================================================
    // ListToolDetails class
    // Reads a text file into an array and displays contents as an inventory list
    // ==========================================================
    import java.io.*;
    import java.util.StringTokenizer;
    import java.text.DecimalFormat;
    public class ListToolDetails {
       // Declare variable
       private Tool[] toolArray; // Reference to an array of objects of type Tool
       private int toolCount;
       public static void main(String args[]) throws Exception {
          String line, name, file = "test.txt";
          int units, count = 0, record = 1;
          double price, total = 0;
          DecimalFormat fmt = new DecimalFormat("##0.00");
          final int MAX = 20;
          Tool[] items = new Tool[MAX];
          System.out.println("Inventory List");
          System.out.println();
          System.out.println("REC.#" + "\t" + "ITEM" + "\t" + "QTY" + "\t"
                + "PRICE" + "\t" + "TOTAL");
          System.out.println("\t" + "\t" + "\t" + "\t" + "PRICE");
          System.out.println();
          try {
             // Read a tab-delimited text file of inventory items
             FileReader fr = new FileReader(file);
             BufferedReader inFile = new BufferedReader(fr);
             StringTokenizer tokenizer;
             while ((line = inFile.readLine()) != null) {
                tokenizer = new StringTokenizer(line, "\t");
                name = tokenizer.nextToken();
                try {
                   units = Integer.parseInt(tokenizer.nextToken());
                   price = Double.parseDouble(tokenizer.nextToken());
                   items[count++] = new Tool(name, units, price);
                   total = units * price;
                } catch (NumberFormatException exception) {
                   System.out.println("Error in input. Line ignored:");
                   System.out.println(line);
                System.out.print(" " + count + "\t");
                System.out.print(line + "\t");
                System.out.print(fmt.format(total));
                System.out.println();
             inFile.close();
          } catch (FileNotFoundException exception) {
             System.out.println("The file " + file + " was not found.");
          } catch (IOException exception) {
             System.out.println(exception);
          System.out.println();
       //  Unfinished functionality for displaying "error" message if user tries to
       //  add more than 20 tools to inventory
       public void addTool(Tool maxtools) {
          if (toolCount < toolArray.length) {
             toolArray[toolCount] = maxtools;
             toolCount += 1;
          } else {
             System.out.print("Inventory is full. Cannot add new tools.");
       // This should search inventory by string and remove/overwrite matching
       // entry with null
       public Tool getTool(int index) {
          if (index < toolCount) {
             return toolArray[index];
          } else {
             System.out
                   .println("That tool does not exist at this index location.");
             return null;
    }  // classData file contents:
    TOOL 1     1     1.21
    TOOL 2     8     3.85
    TOOL 3     35     6.92

    Ok, so you have an array of Strings. And if the string you are searching for is in the array, you need to remove it from the array.
    Is that right?
    Can you use an ArrayList<String> instead of a String[ ]?
    To find it, you would just do:
    for (String item : myArray){
       if (item.equals(searchString){
          // remove the element. Not trivial for arrays, very easy for ArrayList
    }Heck, with an arraylist you might be able to do the following:
    arrayList.remove(arrayList.indexOf(searchString));[edit]
    the above assumes you are using 1.5
    uses generics and for each loop
    [edit2]
    and kinda won't work it you have to use an array since you will need the array index to be able to remove it. See the previous post for that, then set the value in that array index to null.
    Message was edited by:
    BaltimoreJohn

  • Show package contents

    when I right click an app to see the package contents, it always opens a new narrow finder window in the upper right corner of my screen. This is different from how it always worked in Tiger. I use column view, so I was wondering how to open package contents in the next column instead, or at worst in a wider window not way up in the corner. Suggestions?
    Cheers,
    Lars

    are you still effected by this problem? A buddy of mine got into this situation with an .xcodeproj package and let me take a look. It opened up in the upper right corner of the window with a sidebar about 40 pixels wide and the area showing the files was also about 40 pixels wide. I fixed it by blowing away the .DS_Store file for the folder that contained the package. After that the package contents window opened up in the default "alert" position with the default window size. So his package was on his desktop (~/Desktop/XXX.xcodeproj) I typed these commands in Terminal.
    rm ~/Desktop/.DS_Store
    killall Finder
    and when the Finder came back up, opening the package contents worked as expected. You can modify the commands I did above with the path to the parent directory for your package that is causing problem (i.e. /Applications/.DS_Store). Hope that helps. I have no clue how he got into this state though.

Maybe you are looking for