Re: How to retrieve document type?
Re: How to retrieve document type?
- Subject: Re: How to retrieve document type?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 05 Nov 2009 13:12:43 -0800
- Thread-topic: How to retrieve document type?
On Thu, 5 Nov 2009 11:58:02 -0800, Laurent Daudelin
<email@hidden> said:
>I've been searching for this but haven't found any info.
>
>I'd like to retrieve the document type of a given file and display it like the
Finder does, like "Portable Document Format (PDF)" or "Microsoft Word document".
>
>How can I do that?
Aren't you just asking for its kMDItemKind? So presumably you could get that
with MDItemCopyAttribute (assuming I'm not misunderstanding the question).
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden