GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Platform-Specific
  • MacPython

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — MacPython / Launch Services

View as Markdown

MacPython / Launch Services¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

/LaunchServices¶

LaunchServices is a pythonic wrapper for just about everything Apple’s Launch Services API has to offer. It was developed primarily to make /aeve a hell of a lot easier to use.

status¶

LaunchServices is at its first public release, 0.1

examples¶

   1 >> import LaunchServices as LS
   2 >> LS.GetDisplayNameForPath('/')
   3 u'Crack'
   4 >> LS.GetKindStringForPath('/')
   5 u'Volume'
   6 >> LS.GetApplicationPathForInfo(extension='mp3')
   7 u'/Applications/iTunes.app'
   8 >> LS.GetApplicationPathForInfo(creator='MACS')
   9 u'/System/Library/CoreServices/Finder.app'
  10 >> LS.FindApplicationPath(bundle='com.apple.iChat')
  11 u'/Applications/iChat.app'
Previous
MacPython / JavaScript
Next
MacPython / Leopard
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.