• 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
Re: Setting file metadata, how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting file metadata, how?


  • Subject: Re: Setting file metadata, how?
  • From: Vince DeMarco <email@hidden>
  • Date: Thu, 12 May 2005 14:21:47 -0700


On May 11, 2005, at 6:08 PM, robert delius royar wrote:

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.


The minimum is to declare the UTI type for elisp files in XEmacs along with the Kind String (See the Launch Services documentation) you don't need to write an importer to do what you are asking.



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


_______________________________________________ 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
References: 
 >Setting file metadata, how? (From: robert delius royar <email@hidden>)

  • Prev by Date: Re: Patch to mount_nfs to make NFSMNT_RESVPORT default
  • Next by Date: Re: Patch to mount_nfs to make NFSMNT_RESVPORT default
  • Previous by thread: Setting file metadata, how?
  • Next by thread: Multiple __DATA,__common segments/sections
  • Index(es):
    • Date
    • Thread