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)




_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to