comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Search IDL content with Spotlight (Mac OS X)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Search IDL content with Spotlight (Mac OS X) [message #45307] Wed, 31 August 2005 01:59 Go to next message
jm is currently offline  jm
Messages: 32
Registered: April 2003
Member
Has anyone figured out how to search IDL content using Spotlight? I
suspect this is non-trivial.

-John Mardaljevic
Re: Search IDL content with Spotlight (Mac OS X) [message #45351 is a reply to message #45307] Tue, 06 September 2005 12:03 Go to previous message
Chris Konig is currently offline  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 Go to previous message
jm is currently offline  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 #45390 is a reply to message #45307] Thu, 01 September 2005 10:47 Go to previous message
jm is currently offline  jm
Messages: 32
Registered: April 2003
Member
Tried both a touch (just now at home) and a reboot earlier at the
office - neither have produced the desired effect. I'm stumped.

-John
Re: Search IDL content with Spotlight (Mac OS X) [message #45391 is a reply to message #45307] Thu, 01 September 2005 10:35 Go to previous message
mperrin+news is currently offline  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 Go to previous message
jm is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Reproject MODIS automatically using IDL
Next Topic: Re: Another IDL 6.2 Project Problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:47:51 PDT 2025

Total time taken to generate the page: 0.00483 seconds