[Pythonmac-SIG] Creator, type and other means of file detection

Henning Hraban Ramm hraban at fiee.net
Mon Dec 1 20:26:24 CET 2008


Am 2008-12-01 um 20:02 schrieb Nicholas Riley:
>>>> import LaunchServices
>>>> LaunchServices.UTTypeCopyPreferredTagWithClass('public.jpeg',  
>>>> LaunchServices.kUTTagClassOSType)
> u'JPEG'


Thank you, that's something I might use.

And probably LSFindApplicationForInfo, LSGetApplicationForItem and  
LSCopyApplicationForMIMEType, also from LaunchServices.

(Might these method names perhaps be a little bit inconsistent?)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






More information about the Pythonmac-SIG mailing list