diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-12-02 23:01:43 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-12-02 23:01:43 (GMT) |
commit | 7d0a609e6f43b82f3aeeefcb0574f3c1e4b09ad4 (patch) | |
tree | 61c5b06d9c0ae14ef1b7f9062e7f3b2c483ff315 /Lib/plat-mac | |
parent | 148eb6a6b663df6f949b9eebc1f2b2a97ac11e5c (diff) | |
download | cpython-7d0a609e6f43b82f3aeeefcb0574f3c1e4b09ad4.zip cpython-7d0a609e6f43b82f3aeeefcb0574f3c1e4b09ad4.tar.gz cpython-7d0a609e6f43b82f3aeeefcb0574f3c1e4b09ad4.tar.bz2 |
An interface to the LaunchServices API.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r-- | Lib/plat-mac/Carbon/LaunchServices.py | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/Lib/plat-mac/Carbon/LaunchServices.py b/Lib/plat-mac/Carbon/LaunchServices.py new file mode 100644 index 0000000..7131d09 --- /dev/null +++ b/Lib/plat-mac/Carbon/LaunchServices.py @@ -0,0 +1,65 @@ +# Generated from 'LaunchServices.h' + +def FOUR_CHAR_CODE(x): return x +kLSRequestAllInfo = -1 +kLSRolesAll = -1 +kLSUnknownErr = -10810 +kLSNotAnApplicationErr = -10811 +kLSNotInitializedErr = -10812 +kLSDataUnavailableErr = -10813 +kLSApplicationNotFoundErr = -10814 +kLSUnknownTypeErr = -10815 +kLSDataTooOldErr = -10816 +kLSDataErr = -10817 +kLSLaunchInProgressErr = -10818 +kLSNotRegisteredErr = -10819 +kLSAppDoesNotClaimTypeErr = -10820 +kLSAppDoesNotSupportSchemeWarning = -10821 +kLSServerCommunicationErr = -10822 +kLSInitializeDefaults = 0x00000001 +kLSRequestExtension = 0x00000001 +kLSRequestTypeCreator = 0x00000002 +kLSRequestBasicFlagsOnly = 0x00000004 +kLSRequestAppTypeFlags = 0x00000008 +kLSRequestAllFlags = 0x00000010 +kLSRequestIconAndKind = 0x00000020 +# kLSRequestAllInfo = (unsigned long)0xFFFFFFFF +kLSItemInfoIsPlainFile = 0x00000001 +kLSItemInfoIsPackage = 0x00000002 +kLSItemInfoIsApplication = 0x00000004 +kLSItemInfoIsContainer = 0x00000008 +kLSItemInfoIsAliasFile = 0x00000010 +kLSItemInfoIsSymlink = 0x00000020 +kLSItemInfoIsInvisible = 0x00000040 +kLSItemInfoIsNativeApp = 0x00000080 +kLSItemInfoIsClassicApp = 0x00000100 +kLSItemInfoAppPrefersNative = 0x00000200 +kLSItemInfoAppPrefersClassic = 0x00000400 +kLSItemInfoAppIsScriptable = 0x00000800 +kLSItemInfoIsVolume = 0x00001000 +kLSRolesNone = 0x00000001 +kLSRolesViewer = 0x00000002 +kLSRolesEditor = 0x00000004 +# kLSRolesAll = (unsigned long)0xFFFFFFFF +kLSUnknownKindID = 0 +kLSUnknownType = 0 +kLSUnknownCreator = 0 +kLSAcceptDefault = 0x00000001 +kLSAcceptAllowLoginUI = 0x00000002 +kLSLaunchDefaults = 0x00000001 +kLSLaunchAndPrint = 0x00000002 +kLSLaunchReserved2 = 0x00000004 +kLSLaunchReserved3 = 0x00000008 +kLSLaunchReserved4 = 0x00000010 +kLSLaunchReserved5 = 0x00000020 +kLSLaunchReserved6 = 0x00000040 +kLSLaunchInhibitBGOnly = 0x00000080 +kLSLaunchDontAddToRecents = 0x00000100 +kLSLaunchDontSwitch = 0x00000200 +kLSLaunchNoParams = 0x00000800 +kLSLaunchAsync = 0x00010000 +kLSLaunchStartClassic = 0x00020000 +kLSLaunchInClassic = 0x00040000 +kLSLaunchNewInstance = 0x00080000 +kLSLaunchAndHide = 0x00100000 +kLSLaunchAndHideOthers = 0x00200000 |