Python and activescripting within a host environment

Gavin Tomlins GavinT at ResMed.com.au
Tue Sep 24 00:06:11 EDT 2002


Greetings,

We are still trying to solve one or two problems that we have with Python in
a ActiveScripting host. Currently we can access COM based objects
successfully from the python command line and perform normal operations.
However, I was curious to know if people have any examples of products with
ActiveScripting embedded within them that exposes a object model that can be
utilised via Pythonscript. eg. (http://www.atozedsoftware.com/
FinalBuilder). In particular, we are unable to access variables from the
host application. My understanding was that upon a request for a variable or
unknown type it would be fired to the ActiveScripting engine to return the
value or an error.
eg. Within the hostapplication, they expose WindowTitle, ProjectVar
Shouldn't I be able to do something simple like

MyWindowTitle = WindowTitle
MyProjectVar = ProjectVar

or 
ProjectVar = "A new value"

ie. above logic works with Vbscript etc.

is there any special notation needed to identify host variables, or does the
entire variable space of the host application become global to the python
instance.

Is there any documentation outlining the integrating or the absorption of
such operations with Python and ActiveScripting.

Regards

Gavin


Warning:  Copyright ResMed.  Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.

This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on  +61 2 9886 5000 Sydney, Australia.





More information about the Python-list mailing list