LaunchServices is a pythonic wrapper for just about everything Apple'sLaunch 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>>importLaunchServicesasLS 2>>LS.GetDisplayNameForPath('/') 3u'Crack' 4>>LS.GetKindStringForPath('/') 5u'Volume' 6>>LS.GetApplicationPathForInfo(extension='mp3') 7u'/Applications/iTunes.app' 8>>LS.GetApplicationPathForInfo(creator='MACS') 9u'/System/Library/CoreServices/Finder.app' 10>>LS.FindApplicationPath(bundle='com.apple.iChat') 11u'/Applications/iChat.app'MacPython/LaunchServices (last edited 2008-11-15 14:00:11 bylocalhost)
Unable to edit the page? See the FrontPage for instructions.