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

Skip to content

Commit 90c3c16

Browse files
committed
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.
1 parent d61f92b commit 90c3c16

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Mac/Lib/lib-toolbox/aetools.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ def missed(ae):
5858

5959
def unpackevent(ae):
6060
parameters = {}
61+
try:
62+
dirobj = ae.AEGetParamDesc('----', '****')
63+
except AE.Error:
64+
pass
65+
else:
66+
parameters['----'] = unpack(dirobj)
67+
del dirobj
6168
while 1:
6269
key = missed(ae)
6370
if not key: break

0 commit comments

Comments
 (0)