1 # Generated from 'OSA.h' 2 3 def FOUR_CHAR_CODE(x): return x 4 from Carbon.AppleEvents import * 5 kAEUseStandardDispatch = -1 6 kOSAComponentType = FOUR_CHAR_CODE('osa ') 7 kOSAGenericScriptingComponentSubtype = FOUR_CHAR_CODE('scpt') 8 kOSAFileType = FOUR_CHAR_CODE('osas') 9 kOSASuite = FOUR_CHAR_CODE('ascr') 10 kOSARecordedText = FOUR_CHAR_CODE('recd') 11 kOSAScriptIsModified = FOUR_CHAR_CODE('modi') 12 kOSAScriptIsTypeCompiledScript = FOUR_CHAR_CODE('cscr') 13 kOSAScriptIsTypeScriptValue = FOUR_CHAR_CODE('valu') 14 kOSAScriptIsTypeScriptContext = FOUR_CHAR_CODE('cntx') 15 kOSAScriptBestType = FOUR_CHAR_CODE('best') 16 kOSACanGetSource = FOUR_CHAR_CODE('gsrc') 17 typeOSADialectInfo = FOUR_CHAR_CODE('difo') 18 keyOSADialectName = FOUR_CHAR_CODE('dnam') 19 keyOSADialectCode = FOUR_CHAR_CODE('dcod') 20 keyOSADialectLangCode = FOUR_CHAR_CODE('dlcd') 21 keyOSADialectScriptCode = FOUR_CHAR_CODE('dscd') 22 kOSANullScript = 0L 23 kOSANullMode = 0 24 kOSAModeNull = 0 25 kOSASupportsCompiling = 0x0002 26 kOSASupportsGetSource = 0x0004 27 kOSASupportsAECoercion = 0x0008 28 kOSASupportsAESending = 0x0010 29 kOSASupportsRecording = 0x0020 30 kOSASupportsConvenience = 0x0040 31 kOSASupportsDialects = 0x0080 32 kOSASupportsEventHandling = 0x0100 33 kOSASelectLoad = 0x0001 34 kOSASelectStore = 0x0002 35 kOSASelectExecute = 0x0003 36 kOSASelectDisplay = 0x0004 37 kOSASelectScriptError = 0x0005 38 kOSASelectDispose = 0x0006 39 kOSASelectSetScriptInfo = 0x0007 40 kOSASelectGetScriptInfo = 0x0008 41 kOSASelectSetActiveProc = 0x0009 42 kOSASelectGetActiveProc = 0x000A 43 kOSASelectScriptingComponentName = 0x0102 44 kOSASelectCompile = 0x0103 45 kOSASelectCopyID = 0x0104 46 kOSASelectCopyScript = 0x0105 47 kOSASelectGetSource = 0x0201 48 kOSASelectCoerceFromDesc = 0x0301 49 kOSASelectCoerceToDesc = 0x0302 50 kOSASelectSetSendProc = 0x0401 51 kOSASelectGetSendProc = 0x0402 52 kOSASelectSetCreateProc = 0x0403 53 kOSASelectGetCreateProc = 0x0404 54 kOSASelectSetDefaultTarget = 0x0405 55 kOSASelectStartRecording = 0x0501 56 kOSASelectStopRecording = 0x0502 57 kOSASelectLoadExecute = 0x0601 58 kOSASelectCompileExecute = 0x0602 59 kOSASelectDoScript = 0x0603 60 kOSASelectSetCurrentDialect = 0x0701 61 kOSASelectGetCurrentDialect = 0x0702 62 kOSASelectAvailableDialects = 0x0703 63 kOSASelectGetDialectInfo = 0x0704 64 kOSASelectAvailableDialectCodeList = 0x0705 65 kOSASelectSetResumeDispatchProc = 0x0801 66 kOSASelectGetResumeDispatchProc = 0x0802 67 kOSASelectExecuteEvent = 0x0803 68 kOSASelectDoEvent = 0x0804 69 kOSASelectMakeContext = 0x0805 70 kOSADebuggerCreateSession = 0x0901 71 kOSADebuggerGetSessionState = 0x0902 72 kOSADebuggerSessionStep = 0x0903 73 kOSADebuggerDisposeSession = 0x0904 74 kOSADebuggerGetStatementRanges = 0x0905 75 kOSADebuggerGetBreakpoint = 0x0910 76 kOSADebuggerSetBreakpoint = 0x0911 77 kOSADebuggerGetDefaultBreakpoint = 0x0912 78 kOSADebuggerGetCurrentCallFrame = 0x0906 79 kOSADebuggerGetCallFrameState = 0x0907 80 kOSADebuggerGetVariable = 0x0908 81 kOSADebuggerSetVariable = 0x0909 82 kOSADebuggerGetPreviousCallFrame = 0x090A 83 kOSADebuggerDisposeCallFrame = 0x090B 84 kOSADebuggerCountVariables = 0x090C 85 kOSASelectComponentSpecificStart = 0x1001 86 kOSAModePreventGetSource = 0x00000001 87 kOSAModeNeverInteract = kAENeverInteract 88 kOSAModeCanInteract = kAECanInteract 89 kOSAModeAlwaysInteract = kAEAlwaysInteract 90 kOSAModeDontReconnect = kAEDontReconnect 91 kOSAModeCantSwitchLayer = 0x00000040 92 kOSAModeDoRecord = 0x00001000 93 kOSAModeCompileIntoContext = 0x00000002 94 kOSAModeAugmentContext = 0x00000004 95 kOSAModeDisplayForHumans = 0x00000008 96 kOSAModeDontStoreParent = 0x00010000 97 kOSAModeDispatchToDirectObject = 0x00020000 98 kOSAModeDontGetDataForArguments = 0x00040000 99 kOSAScriptResourceType = kOSAGenericScriptingComponentSubtype 100 typeOSAGenericStorage = kOSAScriptResourceType 101 kOSAErrorNumber = keyErrorNumber 102 kOSAErrorMessage = keyErrorString 103 kOSAErrorBriefMessage = FOUR_CHAR_CODE('errb') 104 kOSAErrorApp = FOUR_CHAR_CODE('erap') 105 kOSAErrorPartialResult = FOUR_CHAR_CODE('ptlr') 106 kOSAErrorOffendingObject = FOUR_CHAR_CODE('erob') 107 kOSAErrorExpectedType = FOUR_CHAR_CODE('errt') 108 kOSAErrorRange = FOUR_CHAR_CODE('erng') 109 typeOSAErrorRange = FOUR_CHAR_CODE('erng') 110 keyOSASourceStart = FOUR_CHAR_CODE('srcs') 111 keyOSASourceEnd = FOUR_CHAR_CODE('srce') 112 kOSAUseStandardDispatch = kAEUseStandardDispatch 113 kOSANoDispatch = kAENoDispatch 114 kOSADontUsePhac = 0x0001 115 eNotStarted = 0 116 eRunnable = 1 117 eRunning = 2 118 eStopped = 3 119 eTerminated = 4 120 eStepOver = 0 121 eStepIn = 1 122 eStepOut = 2 123 eRun = 3 124 eLocal = 0 125 eGlobal = 1 126 eProperties = 2 127 keyProgramState = FOUR_CHAR_CODE('dsps') 128 typeStatementRange = FOUR_CHAR_CODE('srng') 129 keyProcedureName = FOUR_CHAR_CODE('dfnm') 130 keyStatementRange = FOUR_CHAR_CODE('dfsr') 131 keyLocalsNames = FOUR_CHAR_CODE('dfln') 132 keyGlobalsNames = FOUR_CHAR_CODE('dfgn') 133 keyParamsNames = FOUR_CHAR_CODE('dfpn') 134