keywords - where and how does Hazel store them?

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

I'm assuming Spotlight will index these proposed xattr keywords into the kMDItemKeywords?

With this approach, what would happen if a file type already had keywords? For example, lets say an MP3 file has id3 tags supporting keywords (I have no idea if this is true, but humour me). And lets say the MP3 spotlight importer puts these tags into kMDItemKeywords. Then someone uses your tag system to add tags with xattrs. Can the keywords from both approaches be combined by Spotlight? Or will one overrule the other?


tom.andersen wrote:We at ironic are working to release a new xattr based tagging system to the public domain within a week or three. We will open source the technology (which is just a few cocoa files).

Basically, it will:
1) Allow programs to set/retrieve tags, ratings, etc on files using a simple API. This api will enforce a few 'rules' about tags - (eg no duplicates, case insensitive, case preserving, etc). Rules are generally 'good' - they allow for consistent user experiences.

2) These tags are automatically indexed with Spotlight.

3) Uses no Apple 'secret' api.

4) Allows the setting of (non spotlight indexed) 'larger but still small (<4k)' blobs of meta data, such as workflows , etc.

There are a few 'gotchas' that we found while working this all out, which is one reason why we thought it was important to not only release the idea, but also some source to implement it.

Deep (see ironicsoftware.com) uses this tech.

--Tom
countach
 
Posts: 5
Joined: Sun Dec 07, 2008 8:31 pm

Hi,

It was for this exact reason that we do not set any kMDItem like things - we would step on exif tags (for kMDItemkeywords) , etc.. It gets messay fast if you do that.

We use a new namespace kOM* eg kOMUserTags.

--Tom
tom.andersen
 
Posts: 3
Joined: Wed Apr 02, 2008 9:39 am

Post a link to the code here when you are ready. (or before, you want a beta tester). I might be able to use it.
countach
 
Posts: 5
Joined: Sun Dec 07, 2008 8:31 pm

It'll certainly be announced on the Ironic Software forum, which would be a more appropriate place to continue this topic.
sjk
 
Posts: 332
Joined: Thu Aug 02, 2007 5:43 pm
Location: Eugene

Hi Tom,

I'm definitely interested to see what you guys release. I'm curious to see how you get Spotlight to index the xattrs. It was my understanding that the SpotMeta guy had issues getting this to work with Leopard.

I'll be in touch via email to discuss possible integration of this.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Previous

Return to Open Discussion