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

Bill Janssen janssen at parc.com
Sun Nov 30 21:17:47 CET 2008


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

> Could you please tell my how I apply the "OSType" method to an UTI?
> Something like LaunchServices.UTType.UTGetOSTypeFromString(UTI) ?

Well, this is the blind leading the blind, but yes, that looks close to
right to me.  You can say,

  from LaunchServices import UTGetOSTypeFromString
  ostype = UTGetOSTypeFromString(uti)

Greetings from the Golden Gate!

Bill


More information about the Pythonmac-SIG mailing list