Re: spotlight, file extension, and UTIs
Re: spotlight, file extension, and UTIs
- Subject: Re: spotlight, file extension, and UTIs
- From: "Roch M. Comeau" <email@hidden>
- Date: Wed, 4 May 2005 07:11:34 -0400
Hi Anton,
From what I can tell (and I may be wrong), asking to see all .zip
files would not prevent any other importer from seeing them and you
should be able to write a short filename test to check the chars
before the .zip to see if you are interested in the file for further
processing. This should not add a lot of overhead and I think is
reasonable in this case. All you need to do is return FALSE from the
GetMetadataForFile function (may not be necessary).
Regards,
Roch Comeau
On 3-May-05, at 11:41 PM, Anton Leuski wrote:
I have an spotlight plugin that indexes documents with extension
".fb2". These documents come from a UNIX server in zipped format
with extension ".fb2.zip". For example "foo.fb2.zip" is an archive
of "foo.fb2". I do not want to require the user to uncompress
documents after downloading to index them, because my application
(that can view those documents) can handle zipped versions just
fine (and it saves storage space). So I want my Spotlight plugin to
be able to index both .fb2 and .fb2.zip files. BUT! it looks like
Mac OS only considers ".zip" to be an extension and not ".fb2.zip"
My question is: How can I define a UTI that maps to .fb2.zip? Is
there a way to get Spotlight to index .fb2.zip with my plugin? The
only solution I found so far is to assign all .zip files to my
plugin and then handle only those that have .fb2.zip extension. But
this is clearly unacceptable -- I do not want to hijack all .zip
files...
Thank you.
-- Anton_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
research.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden