This wiki is in the process of being archived due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies. Edits are discouraged.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

/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'

2026年02月14日 16:09

AltStyle によって変換されたページ (->オリジナル) /