[PYTHONMAC-SIG] Scripting Demo
Bill Bedford
billpy@mail.demon.net
Sat, 25 Jan 1997 22:27:35 +0000
I've finally got the Eudora/scripting demo to work as it should. To do this
I used this patch in aepack.py
--------------------
line 68
def pack(x, forcetype = None):
"""Pack a python object into an AE descriptor"""
if type(x) is TupleType:
x, forcetype = x
-----------------
And this is added to each method in Eudora_Suite.py which expects a boolian
---------------
for k in _arguments.keys():
if _arguments[k] == 0:
_arguments[k] = ('false', 'bool')
else:
_arguments[k] = ('true', 'bool')
aetools.keysubst(_arguments, self._argmap_reply)
_arguments['----'] = _object
---------------
In fact this should be added to every AppleEvent method that expects a
boolean, so perhaps gensuitemodule.py should be changed to add this code.
-----------------------------------------------------------------------
Bill Bedford Designer of Photo-Etches
billb@mousa.demon.co.uk
owner Brit_Rail-L --- british railways historical list
-----------------------------------------------------------------------
_______________
PYTHONMAC-SIG - SIG on Python for the Apple Macintosh
send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________