[ Web Proxy ]
URL:
Viewing: https://wiki.python.org/moin/../python/platforms/MacPython/../MacPython/LaunchServices.html [Back]  [Original]

MacPython / Launch Services - Python Wiki
Python Wiki
psf/wiki 0 0
Copy page

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 Apples 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'
Back to top

Web Proxy Viewer  |  New URL  |  Original Page