msscript & python: problems accessing objects inserted by msscript->AddObject

  • Thread starter Svenn-Ivar Svendsen
  • Start date
S

Svenn-Ivar Svendsen

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(logTxt, 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\Python23\lib\site-packages\win32comext\axscript\client\pyscript.py",
line 146, in __getattr__
return self._scriptItem_.subItems[string.lower(attr)].attributeObject
AttributeError: 'NoneType' object has no attribute 'subItems'

Regards,
SIS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top