Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7cfb95

Browse files
committed
Rather massive changes:
- Make the stuff run on Jack's machine (and hopefully all machines) in stead of Guido's only (addpack stuff) - Use the Universal Headers in stead of the Think headers - Fixed the test programs to use the new routine names
1 parent f301dca commit c7cfb95

7 files changed

Lines changed: 165 additions & 359 deletions

File tree

Mac/Lib/test/echo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"""
88

99
import addpack
10-
addpack.addpack('Demo')
10+
addpack.addpack('Tools')
1111
addpack.addpack('bgen')
1212
addpack.addpack('ae')
1313
addpack.addpack('evt')

Mac/Lib/toolbox/AppleEvents.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'D:Development:THINK C:Mac #includes:Apple #includes:AppleEvents.h'
1+
# Generated from 'Moes:CW5 GOLD \304:Metrowerks C/C++ \304:Headers \304:Universal Headers 2.0a3 \304:AppleEvents.h'
22

33
typeBoolean = 'bool'
44
typeChar = 'TEXT'
@@ -28,6 +28,8 @@
2828
typeSectionH = 'sect'
2929
typeWildCard = '****'
3030
typeApplSignature = 'sign'
31+
typeQDRectangle = 'qdrt'
32+
typeFixed = 'fixd'
3133
typeSessionID = 'ssid'
3234
typeTargetID = 'targ'
3335
typeProcessSerialNumber = 'psn '
@@ -79,26 +81,24 @@
7981
kAEDefaultTimeout = -1
8082
kNoTimeOut = -2
8183
kAENoDispatch = 0
82-
kAEUseStandardDispatch = -1
83-
errAECoercionFail = -1700
84-
errAEDescNotFound = -1701
85-
errAECorruptData = -1702
86-
errAEWrongDataType = -1703
87-
errAENotAEDesc = -1704
88-
errAEBadListItem = -1705
89-
errAENewerVersion = -1706
90-
errAENotAppleEvent = -1707
91-
errAEEventNotHandled = -1708
92-
errAEReplyNotValid = -1709
93-
errAEUnknownSendMode = -1710
94-
errAEWaitCanceled = -1711
95-
errAETimeout = -1712
96-
errAENoUserInteraction = -1713
97-
errAENotASpecialFunction = -1714
98-
errAEParamMissed = -1715
99-
errAEUnknownAddressType = -1716
100-
errAEHandlerNotFound = -1717
101-
errAEReplyNotArrived = -1718
102-
errAEIllegalIndex = -1719
103-
errAEUnknownObjectType = -1731
104-
errAERecordingIsAlreadyOn = -1732
84+
kAEUseStandardDispatch = 0xFFFFFFFF
85+
kAEDoNotIgnoreHandler = 0x00000000
86+
kAEIgnoreAppPhacHandler = 0x00000001
87+
kAEIgnoreAppEventHandler = 0x00000002
88+
kAEIgnoreSysPhacHandler = 0x00000004
89+
kAEIgnoreSysEventHandler = 0x00000008
90+
kAEIngoreBuiltInEventHandler = 0x00000010
91+
kAEDontDisposeOnResume = 0x80000000
92+
kAEInteractWithSelf = 0
93+
kAEInteractWithLocal = 1
94+
kAEInteractWithAll = 2
95+
kAEUnknownSource = 0
96+
kAEDirectCall = 1
97+
kAESameProcess = 2
98+
kAELocalProcess = 3
99+
kAERemoteProcess = 4
100+
kAEDataArray = 0
101+
kAEPackedArray = 1
102+
kAEHandleArray = 2
103+
kAEDescArray = 3
104+
kAEKeyDescArray = 4

Mac/Lib/toolbox/aetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def pack(x, forcetype = None):
6868
if t == DictionaryType:
6969
record = AE.AECreateList('', 1)
7070
for key, value in x.items():
71-
record.AEPutKeyDesc(key, pack(value))
71+
record.AEPutParamDesc(key, pack(value))
7272
return record
7373
if t == InstanceType and hasattr(x, '__aepack__'):
7474
return x.__aepack__()

0 commit comments

Comments
 (0)