The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Tweaking OS X / Wish List (http://hintsforums.macworld.com/forumdisplay.php?f=25)
-   -   Spotlight find/show invisible files (http://hintsforums.macworld.com/showthread.php?t=57584)

Norm Nager 06-28-2006 05:58 PM

Spotlight find/show invisible files
 
I use EasyFind donate-ware to search for and show invisible files and folders, but it would be more convenient if Tiger and Leopard Spotlight searches would give the user the option to do this.

Respectfully, Norm

voldenuit 06-28-2006 06:06 PM

Quote:

Originally Posted by Norm Nager
I use EasyFind donate-ware to search for and show invisible files and folders, but it would be more convenient if Tiger and Leopard Spotlight searches would give the user the option to do this.

Tell us more about you Leopard tests ;-) .

I simply use locate in the terminal when I'm after a .hidden file, but it certainly would be helpful to include those for spotlight indexing.

solipsism 06-28-2006 06:34 PM

I hope for that option too.

I tend to use Windows Remote Desktop to search for hidden files on my Mac. It's completely backasswards, but for some reason I prefer this method.

hayne 06-28-2006 06:39 PM

I'm just curious - but what are these invisible files that you are needing to search for?

Norm Nager 06-28-2006 06:54 PM

Hayne, I forgot what invisible files but I do such searches several times a year. Today I was looking for PithHelmet.log to see if it had grown significantly. It's NOT an invisible file; it just didn't show up in a Spotlight search. But when I ran EasyFind, I was reminded that the donate-ware app is in my dock because of its invisible-file capability.

styrafome 06-28-2006 08:41 PM

I just use the Finder's Find command (I assume that is driven by Spotlight) and use the Visibility criterion.

Norm Nager 06-28-2006 09:06 PM

Quote:

Originally Posted by styrafome
I just use the Finder's Find command (I assume that is driven by Spotlight) and use the Visibility criterion.

I just tried that using Visibility: Invisible Items to search for .trashes.

In EasyFind, .trashes was displayed as found and last modified June 18, 2006, but my Finder Spotlight search came up empty. :confused:

Respectfully, Norm

styrafome 06-28-2006 09:37 PM

That's what's so weird. Finder Find does it but Spotlight doesn't. Maybe somebody who knows the Spotlight query language can make it work in Spotlight itself?

hayne 06-29-2006 12:20 AM

Quote:

Originally Posted by Norm Nager
Today I was looking for PithHelmet.log to see if it had grown significantly. It's NOT an invisible file; it just didn't show up in a Spotlight search.

And where (in what folder) is that PithHelmet.log file?
Is it perhaps a folder that is designated out of reach for Spotlight?
I think it might also be possible for a developer to specify that the files of its application should not be indexed by Spotlight. (e.g. this might be desirable if the files are changing frequently)

hayne 06-29-2006 12:21 AM

Quote:

Originally Posted by Norm Nager
I just tried that using Visibility: Invisible Items to search for .trashes

Again, I'm curious why you were searching for ".trashes" - was this just an example to prove a point or was there some reason why you wanted to find this folder?

Norm Nager 06-29-2006 01:18 AM

Quote:

why you were searching for ".trashes" - was this just an example to prove a point
It was the first invisible file that came to mind for Finder Spotlight invisible and EasyFinder searching.
Quote:

And where (in what folder) is that PithHelmet.log file?
~/Library/Application Support/PithHelmet/com.apple.Safari

hayne 06-29-2006 01:33 AM

Quote:

Originally Posted by Norm Nager
~/Library/Application Support/PithHelmet/com.apple.Safari

Hmm, that is a bit strange that it isn't found by Spotlight. Spotlight finds all the random examples I've tried from under my Application Support folder.

Maybe you should ask the PithHelmet developers about this.

6502 06-29-2006 02:09 AM

I just tried searching for a few items in my /Library/Application Support folder and none of them turned up in a Spotlight search under 10.4.5.

I suspect that Apple has been tweaking it and there are different folders excluded in different versions of the OS.

This is a list of Spotlight excluded folders that I saved for personal reference. It's not completely accurate -- for some reason, Spotlight may index some of those folders on some Macs and there may be other folders that it doesn't index. As I recall, there are at least 2 .plist files that control whether Spotlight will index a given folder and I'm not sure what happens if there are conflicts between the two.

/Desktop
/Documents
/Library/Caches/com.apple.AddressBook/MetaData
/Library/Mail
/Music
/Movies
/Pictures
/Library/Caches/Metadata
/Library/Fonts
/Library/Internet Plug-Ins
/Library/Metadata
/Library/Preferences
/Library/PreferencePanes
/Library/Screen Savers
/Library/Spotlight
/Library/Widgets
/Library/Caches
/Library/Printers
/Applications
/Users/Shared
/System/Library/CoreServices/Help Viewer.app
/System/Library/Fonts
/System/Library/PreferencePanes
/Users
/AppleInternal/Library
/Developer/ADC Reference Library
/Developer/Documentation
/Previous Systems.localized
/Network
/Volumes
/private
/tmp
/var
/etc
/usr
/bin
/sbin
/dev
/automount
/cores
/mach.sym
/iPod_Control
/System Folder
/Classic
/System/System Folder
/Classic System Folder 9.2.2

ThreeBKK 07-08-2006 06:54 AM

Doing the broadest search possible for invisible items, using the Finder's find feature, and trying every search location such as Computer and Home, I get ZERO results. Kind>any, visiblity>invisible. I'm using 10.4.6 and only exclude one or two small folders from Spotlight indexing. I'm sure it's been like this since at least 10.4.3.

solipsism 07-08-2006 07:05 AM

I could be wrong ThreeBKKK, but it only looks for files you've chosen to make invisible.

ThreeBKK 07-08-2006 07:22 AM

Okay, perhaps that's the case solipsism. It's not extremely useful that way though.

I also tried searching for invisible files with Finder's find while invisible items were showing.(in other words I unhid the files in list/column view) Again, ZERO results.

I used this all of the time under Panther to look at invisible files and it would be nice to have it back. I like to scan the various file sizes and see what the modification/creation dates are.

ThreeBKK 07-08-2006 07:32 AM

Using Spotlight I can find .trash, but that's the only invisible file it would find out of about 10 that I tried. Finder's find also shows .trash, but only if I specifically type "trash". Otherwise it won't show it.

solipsism 07-08-2006 06:02 PM

Just speculation, but Apple has a strong history of knowing what is best for the user. In most cases they are correct, but it would be nice for power users to access these things without having to use 3-rd party programs. Hopefully, Spotlight in Leopard will allow for more options, or perhaps even a simple hack that will not overlook all but the .trash files.

vicjoe 07-09-2006 11:44 PM

FWIW, showing invisible files appears to be one of the capabilities of Spotlight, if someone has the savvy to figure out the syntax. All the metadata attributes used by Spotlight, including invisibles, are listed here:http://developer.apple.com/documenta...mmonAttrs.html
I have no idea how to use this information, but there you are anyway.

ThreeBKK 07-10-2006 08:33 AM

Quote:

I have no idea how to use this information
That makes two of us.

Interesting find, but what does it mean?

I think someone suggested that maybe Apple is preventing Spotlight from returning search results for invisible files for the benefit of the end user… to save us from ourselves. If that's the case, then the commands on that page aren't likely to help much, but let's see if anyone can make heads or tails out of it.

Lee Brewer 08-09-2006 05:49 PM

spotlight and hidden files
 
I downloaded the game "Rocks N' Diamonds." The author had put the default levels in a a hidden directory called .rocksndiamonds. When I went to upgrade to the newest version, I wanted to keep the levels I had created within this hidden directory. I eventually had to contact the author to find out about the location of this directory (the only one that did not show up in the menu when you loaded the different sets of levels). I had a horrible time, before i wrote him, trying to locate my levels on the HD because they were in a hidden directory. therefore i would like to know if there is some way to make Spotlight locate hidden files and/or directories?

Lee

solipsism 08-09-2006 05:53 PM

You'll need to use Terminal.app or DL a 3rd-party app.


All times are GMT -5. The time now is 04:30 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.