I'm implementing a windows application with generic support for
scripting, and I'm using the microsoft script control (msscript).
For vbscript/jscript I'm happy, but with python I got problems
accessing COM objects that have been inserted in the script runtime by
the msscript->AddObject function. Have anybody had similar problems?
To be more specific the code:
Monitor.Echo(lo gTxt, output)
where 'Monitor' is a COM object aready inserted by
msscript->AddObject(.. ) results in a runtime error where the top stack
trace shows:
File "C:\PROGRA~1\Py thon23\lib\site-packages\win32c omext\axscript\ client\pyscript .py",
line 146, in __getattr__
return self._scriptIte m_.subItems[string.lower(at tr)].attributeObjec t
AttributeError: 'NoneType' object has no attribute 'subItems'
Regards,
SIS
scripting, and I'm using the microsoft script control (msscript).
For vbscript/jscript I'm happy, but with python I got problems
accessing COM objects that have been inserted in the script runtime by
the msscript->AddObject function. Have anybody had similar problems?
To be more specific the code:
Monitor.Echo(lo gTxt, output)
where 'Monitor' is a COM object aready inserted by
msscript->AddObject(.. ) results in a runtime error where the top stack
trace shows:
File "C:\PROGRA~1\Py thon23\lib\site-packages\win32c omext\axscript\ client\pyscript .py",
line 146, in __getattr__
return self._scriptIte m_.subItems[string.lower(at tr)].attributeObjec t
AttributeError: 'NoneType' object has no attribute 'subItems'
Regards,
SIS