• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting file metadata, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting file metadata, how?


  • Subject: Setting file metadata, how?
  • From: robert delius royar <email@hidden>
  • Date: Wed, 11 May 2005 21:08:40 -0400 (EDT)
  • Organization: An Apple OS X end user
  • Priority: normal

I would like to add the ability to set kMDItemKind and kMDItemContentType from an X11 application (XEmacs). I have written an mdimporter that lets spotlight index elisp files and other files I have registered though the importer (types el, mss, and text <key>public.filename-extension</key>).
I created a <key>org.xemacs.ostype</key> <string>XEma</string> and a <key>UTTypeDescription</key> <string>XEmacs Document</string>
<key>UTTypeIdentifier</key> <string>org.xemacs.text</string>
The importer works fine except that XEmacs does not have any code in it (yet) to make sure its files have the correct metadata when they are written.


What is the minimum I would need to add the ability to accomplish this? Could the ability be created in a plugin that provided some external hook that XEmacs could call with a complete path? I am thinking maybe the sample metadate application could be adapted for that. I think that would be better than having to create an Xcode wrapper for XEmacs.

Ultimately, in addition to automatic indexing, I would like XEmacs to be able to determine modes for files from the metadata which would be helpful for a number of reasons.

--
Dr. Robert Delius Royar                   Associate Professor of English
Morehead State University                             Morehead, Kentucky
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Setting file metadata, how?
      • From: Vince DeMarco <email@hidden>
  • Prev by Date: Problems building automount
  • Next by Date: Multiple __DATA,__common segments/sections
  • Previous by thread: Re: Problems building automount
  • Next by thread: Re: Setting file metadata, how?
  • Index(es):
    • Date
    • Thread