Re: Spotlight -- Metadata importer vs file package containing rtfd files
Re: Spotlight -- Metadata importer vs file package containing rtfd files
- Subject: Re: Spotlight -- Metadata importer vs file package containing rtfd files
- From: Vince DeMarco <email@hidden>
- Date: Thu, 5 May 2005 09:14:28 -0700
On May 5, 2005, at 8:38 AM, Ali Lalani wrote:
For now you basically need to leave a trail file (not sure what to
call it) and update that file when the data in the sql lite
database changes etc.
For example in iCal the calendars are stored as they normally are
but, in Library/Caches/Metadata/iCal/ are the spotlight files that
get indexed and presented to the user, when one of these files is
selected iCal starts up and should select the event for that day
etc..
Delicious Library is doing exactly the same thing.
Vince
Thanks for the tips Vince, i've made good headway, and my plugin
seems to be working now.
I do have a couple more questions though...
a) The objects i'm representing in spotlight are not "documents" at
all, at least in the eyes of the user, even though i suppose the
"trail file" is a document. I'd like to obscure this from the user
somehow but there's a header that pops into the spotlight window
when you expand the item for more info, "Where", and gives the file
path. Is there a way to remove this, since it is irrelevant?
If the file is in Library/Caches/Metadata the path shouldn't show up.
(The version i have locally has this fix) but i'm not 100% sure of
the released version.
b) I noticed that for some reason when i create a path: '~/Library/
Caches/[my folder heirarchy similar to Address Book]' and add my
files to it, spotlight refuses to index them. However when i used
'~/Library/Caches/MetaData/[my folder heirarchy]' it did. Why is
this? Permissions are the same for both. It's not a big deal
because now i have it in the latter folder and it works fine, but
it should probably be noted in future documentation if it's not
already(and i missed it somehow).
Create them in ~/Library/Caches/Metadata/your.program.name
c) My objects don't really fit into the category of Documents, or
Contacts, or any of the other categories spotlight seems to have.
I'd like ideally to create my own category, is this possible, or is
that reserved for Apple? I also noted that when you expand a
Contact from address book in the Spotlight window you get some
level of interactivity such as clicking on phone numbers or email
addresses to produce some action. Can we add some interactivity to
our own Spotlight items?
You can't create your own category. The program looks specifically
for address book contacts to do that action, you can't do this yourself.
Vince
Thanks in advance,
Ali
_______________________________________________
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