In unpackevent, get the direct object (----) before asking for missed parameters.

The documentation is unclear on this, but the old implementation caused problems
with Default Folder.
This commit is contained in:
Jack Jansen 1999-01-22 13:23:12 +00:00
parent d61f92bab3
commit 90c3c164e0
1 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,13 @@ def missed(ae):
def unpackevent(ae):
parameters = {}
try:
dirobj = ae.AEGetParamDesc('----', '****')
except AE.Error:
pass
else:
parameters['----'] = unpack(dirobj)
del dirobj
while 1:
key = missed(ae)
if not key: break