Home | History | Annotate | Download | only in plat-mac

Lines Matching refs:AE

9 Plus...  Lots of classes and routines that help representing AE objects,
14 and pack(x) will create an AE object reference equivalent to AppleScript's
28 from Carbon import AE
60 def missed(ae):
62 desc = ae.AEGetAttributeDesc('miss', 'keyw')
63 except AE.Error, msg:
67 def unpackevent(ae, formodulename=""):
70 dirobj = ae.AEGetParamDesc('----', '****')
71 except AE.Error:
78 dirobj = ae.AEGetParamDesc('errn', '****')
79 except AE.Error:
85 key = missed(ae)
87 parameters[key] = unpack(ae.AEGetParamDesc(key, '****'), formodulename)
91 desc = ae.AEGetAttributeDesc(key, '****')
92 except (AE.Error, MacOS.Error), msg:
99 def packevent(ae, parameters = {}, attributes = {}):
101 packkey(ae, key, value)
103 ae.AEPutAttributeDesc(key, pack(value))
147 """An AE connection to an application"""
178 self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
195 except AE.Error:
200 except AE.Error:
213 event = AE.AECreateAppleEvent(code, subcode, self.target,
348 target = AE.AECreateDesc('sign', 'quil')
349 ae = AE.AECreateAppleEvent('aevt', 'oapp', target, -1, 0)
350 print unpackevent(ae)
352 ae = AE.AECreateAppleEvent('core', 'getd', target, -1, 0)
356 packevent(ae, {'----': obj})
357 params, attrs = unpackevent(ae)