Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Search the trash when searching everywhere Desktop
Actually, this affected Panther, and Jaguar before it... perhaps all versions of OS X? For the sake of this experiment, take an (unimportant!) file or folder and put it in the trash. Then press Command-F to do a search, pull the pulldown to "Search in: Everywhere" and do a search for that file or folder. The Finder won't find it. For that matter, it won't find it if you limit the search to Local disks, Home, or Specific Places!

I'm sure there's some UNIX-y explanation for this, but I was raised on Mac, and no explanation is going to be good enough. When I tell the Mac to search "Everywhere," I want it to search "Everywhere," and that means the Trash too!

In the meantime, here's a workaround. Press Command-Shift-G for the Go To Folder dialog and type "~/.Trash." This will take you to the invisible Trash folder. Then press Command-F to do a search and pull the pulldown to "Search in: Specific Places." You can then drag the proxy icon from the top center of the ".Trash" window (or directly from the Finder if you use column view mode) to the upper pane in the "Search in Specific places" window.

And of course, the next time you search, make sure both your hard drive and .Trash folder checkboxes selected.
    •    
  • Currently 3.00 / 5
  You rated: 1 / 5 (5 votes cast)
 
[13,593 views]  

Search the trash when searching everywhere | 18 comments | Create New Account
Click here to return to the 'Search the trash when searching everywhere' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Search the trash when searching everywhere
Authored by: oink on Nov 26, '03 01:44:32PM

The standard "finder"(?) find won't find invisible files either. A better bet is to use the "find" (with -iname) command in terminal if you are desperately looking for a lost file



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: davidcrickett on Nov 26, '03 02:22:34PM

yes it will - you just turn on visibility from the drop down menu. Then it searches in the trash too.

---
davidcrickett



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: osxpounder on Nov 26, '03 02:39:55PM

Confirmed--thanks so much for pointing that out! BTW, you must be sure to choose, in "Search in:", the menu option, "Everywhere", or your search won't include the Trash.

---
--
osxpounder



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: syzygy on Nov 26, '03 08:56:10PM

Actually, if you search home for visible and invisible, it will search the trash, since the trash is an invisible folder in your home folder.



[ Reply to This | # ]
design decision
Authored by: hayne on Nov 26, '03 04:14:26PM

The author of this hint said "I'm sure there's some UNIX-y explanation for this".
Actually, the explanation is nothing to do with UNIX. Finder is (just) an application and so what it does is up to its designers. They made decisions about what parts of the disk a typical user would want to search. They could have included the Trash or any other folder had they wanted to. If you think they made the wrong decision, tell Apple via http://www.apple.com/macosx/feedback/



[ Reply to This | # ]
design decision
Authored by: Fofer on Nov 27, '03 12:57:26AM

I'm the author of the hint. In my opinion, the Trash should be included in standard "everywhere" searches because it's a folder that users interface with all the time. In some sense, it's the MOST IMPORTANT folder to be able to search... since files in there are on the proverbial chopping block.



[ Reply to This | # ]
Add visibility criterion
Authored by: abriening on Nov 26, '03 05:39:13PM

The simple solution is to Command-F then select "add criteria -> visibility"; then set the new visibility criterion to "all". This really will search everywhere.



[ Reply to This | # ]
with one exception
Authored by: ryancu on Oct 09, '05 04:28:33AM

The "System" folder in the root of your OS X volume will still be excluded. Add it explicitly to the Specific places list if you want to search in there too, but you should need to, unless you want to see where the Dock application lives or something :-)



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: aris on Nov 26, '03 06:13:11PM

Try this. Create a folder on the desktop called testxyz. Use find to locate it. With the find window open, drag the folder to the trash. The window now shows the folder in the trash. Quit find, relaunch it and ask it to find the folder. It cannot. It obviously can see stuff in the trash so it must just not search in there when you initiate a find.



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: baltwo on Nov 26, '03 06:48:16PM

Tis true. By default, Finder's Find doesn't search the /System or /Library folders, even if "everywhere" is selected.



[ Reply to This | # ]
Are you sure?
Authored by: ryancu on Oct 09, '05 03:48:31AM

On mine, although /System is excluded from Everywhere, /Library and ~/Library are not. 10.3.9

I think choosing Search in: Everywhere is the same as choosing Specific places and putting in all the volumes currently mounted. /System and invisible files/folders including the trash are still excluded, unless you add /System to the specific places list, and add the visibility condition and set it to visible and invisible.



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: abriening on Dec 22, '03 08:10:54PM

The Finder follows the files in the Search Results window. With the Search Results window open, drag your testxyz folder into the trash then empty the trash. If the folder is selected in the Search Results window it will disappear immediately otherwise, click on the file in the Search Results window and --poof-- it disappears.

Almost like rm-ing files in the Terminal, they don't disappear if their folder is open in the background till you click on the window and the Finder updates the .DS_Store.



[ Reply to This | # ]
Just make the trash visible...
Authored by: vonleigh on Nov 27, '03 02:42:51AM
..using a symlink:
ln -s /Users/username/.Trash /Users/username/Trash
Changing username for yours. This way you'll have a visible Trash folder in your home folder. A symlink is like an alias but better, mainly because all applications see it as a normal folder; whereas an alias is just a file.

[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: john_e on Nov 27, '03 09:06:05AM

Yep. The exact explanation is that the Finder won't search in Folders or for files whose names are preceded with a "."
These aren't listed in the Finder, or by the ls command (without the proper switch). Trash is one such Folder. It recides in your homedir, and it's name is .Trash. That's why the Finder doesn't show it, or search in it. You can always choose to search for invisible files in the search dialog, which will search .Trash/
I guess Apple could include .Trash as an exception to the rule...



[ Reply to This | # ]
Obvious solution?
Authored by: Ezekiel on Nov 27, '03 12:32:10PM

I think Rob should make a comment in this hint so that people aren't confused. The solution is so obvious, and yet several people come up with more or less arcane ways of getting around it.

As has been said before though: Just add a new criteria (they stick after you close the Find dialogue after all), choose visibility, and change it to "all". Then it will search *everywhere* if you select "everywhere". Or everywhere in your home folder if you so choose.



[ Reply to This | # ]
That's not true!
Authored by: ryancu on Oct 09, '05 04:19:01AM
Just add a new criteria (they stick after you close the Find dialogue after all), choose visibility, and change it to "all". Then it will search *everywhere* if you select "everywhere".
No it won't! Try searching for the "Software Update" application. /System is still excluded.

To search truely everywhere with Panther (and assuming Macintosh HD is the only system volume):

  1. Set "Search in:" to "Specific Places"
  2. Make sure all the volumes you have are in the list.
  3. Add /System to the list
  4. Add the "Visibility" condition and set it to "visible and invisible items"
  5. Continue your search like normal.
If you don't really want to search everywhere (good idea) but you do want the trash, then just do the last two steps, or follow the tip at the top.

[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: Infinity23 on Nov 27, '03 02:16:48PM

It works perfectly on my PowerBook and 10.3. Tell it to search everywhere and it also comes up with anything in my trash.



[ Reply to This | # ]
Search the trash when searching everywhere
Authored by: xSmurf on Nov 29, '03 06:56:23PM

This is not much of a hint as holding 'cmd' will do the same, but moving a file to the trash and then back to another HD will move it to the other drive instead of copying.

I noticed this in Panther, but don't think I've ever tried with previous version.

---
PM G4 DP 800 / 256Mb / 80Gb+40Gb /SuperDrive / SCSI: AGFA SnapScan 1236s / Jaz 1Gb / Zip 100Mb
- The only APP Smurf ;P



[ Reply to This | # ]