|
Re: Search IDL content with Spotlight (Mac OS X) [message #45351 is a reply to message #45307] |
Tue, 06 September 2005 12:03  |
Chris Konig
Messages: 5 Registered: March 2005
|
Junior Member |
|
|
I replaced my Info.plist with the version that Marshall Perrin posted. I
also 'touch'ed the folder and nothing happened at first.
After my latest restart though (takes me a while until I need to restart
my PB) Spotlight seems to find contents of *SOME* of my pro-files. It
even would find stuff (e.g. 'n_params') in some files but not in others
in the same folder!
I played around and it seems like it only finds contents in files that
had been opened by TextEdit at some point or other.
So, I'm not sure if the Info.plist thing did anything at all, or if it
at least makes Spotlight find it once TextEdit opened it (and OSX knows
it's a text file?).
Any other experiences?
Chris
|
|
|
Re: Search IDL content with Spotlight (Mac OS X) [message #45385 is a reply to message #45307] |
Thu, 01 September 2005 14:49  |
jm
Messages: 32 Registered: April 2003
|
Member |
|
|
Hmmm... This thread seems to have got borked. Anyway, if anyone is
willing - could they try out Marshall's modified Info.plist. At least
if works for someone else, then I'll know that I'm doing something very
wrong.
-John
|
|
|
|
Re: Search IDL content with Spotlight (Mac OS X) [message #45391 is a reply to message #45307] |
Thu, 01 September 2005 10:35  |
mperrin+news
Messages: 81 Registered: May 2001
|
Member |
|
|
jm@dmu.ac.uk <jm@dmu.ac.uk> wrote:
> Marshall, thanks for the Info.plist file. I renamed the original and
> added yours, and then set ownership:group to root:wheel to match the
> original. I tried editing a .pro file, but that didn't show up in
> Spotlight. Next I tried manual import using both:
You may need to force the OS to notice that there's been a change to
RichText.mdimporter. I believe it reloads the importer whenever it notices
a change to it, but it's probably only looking at the top-level directory.
Try 'touch /System/Library/Spotlight/RichText.mdimporter' to update the
modification time, which I think will make it get reloaded. If not, a reboot
certainly will, but that wasn't necessary for me.
- Marshall
|
|
|
Re: Search IDL content with Spotlight (Mac OS X) [message #45394 is a reply to message #45307] |
Thu, 01 September 2005 02:06  |
jm
Messages: 32 Registered: April 2003
|
Member |
|
|
Marshall, thanks for the Info.plist file. I renamed the original and
added yours, and then set ownership:group to root:wheel to match the
original. I tried editing a .pro file, but that didn't show up in
Spotlight. Next I tried manual import using both:
mdimport current_directory
and
mdimport -r /System/Library/Spotlight/RichText.mdimporter
Neither worked. Then I ran this test:
% mdimport -d1 new_comp_ies.pro
2005-09-01 09:51:35.459 mdimport[252] Import
'/Users/jm/Projects/2005/leic_pac/new_comp_ies.pro' type
'dyn.ah62d4rv4ge81a6xt' no mdimporter
So, no luck yet. By the way, copying the file to new_comp_ies.txt does
work (as expected):
% mdimport -d1 new_comp_ies.txt
2005-09-01 09:55:28.953 mdimport[253] Import
'/Users/jm/Projects/2005/leic_pac/new_comp_ies.txt' type
'public.plain-text' using
'file://localhost/System/Library/Spotlight/RichText.mdimport er/'
Have I done something not quite right?
Cheers,
-John
|
|
|