| [ Web Proxy ] |
| Viewing: https://wiki.python.org/moin/../python/platforms/MacPython/../MacPython/LaunchServices.html | [Back] [Original] |
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 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.
LaunchServices is at its first public release, 0.1
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'
2026, Python Software Foundation
Made with Sphinx and Shibuya theme.
| Web Proxy Viewer | New URL | Original Page |