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

Bill Janssen janssen at parc.com
Mon Dec 1 19:53:22 CET 2008


Henning Hraban Ramm <hraban at fiee.net> wrote:

> >>> from LaunchServices import UTGetOSTypeFromString
> >>> UTGetOSTypeFromString('public.jpeg')
> 1886741100

>>> hex(1886741100)
'0x7075626c'
>>> chr(0x70), chr(0x75), chr(0x62), chr(0x6c)
('p', 'u', 'b', 'l')
>>> 

Doesn't seem all that useful.

Bill


More information about the Pythonmac-SIG mailing list