On Mon, Dec 01, 2008 at 07:34:37PM +0100, Henning Hraban Ramm wrote: > Ok, but how can I convert those Ints to string? > I get them as Ints also from UTGetOSTypeFromString: > > >>> from LaunchServices import UTGetOSTypeFromString > >>> UTGetOSTypeFromString('public.jpeg') > 1886741100
>>> from LaunchServices import UTGetOSTypeFromString >>> ostype = UTGetOSTypeFromString('public.jpeg') >>> ('%x' % ostype).decode('hex') 'publ' I don't think that is what you want though. Instead, use: >>> import LaunchServices >>> LaunchServices.UTTypeCopyPreferredTagWithClass('public.jpeg', >>> LaunchServices.kUTTagClassOSType) u'JPEG' -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig