Re: scripting with bonobo
- From: "Dirk-Jan C . Binnema" <bulkmail dds nl>
- To: Miguel de Icaza <miguel helixcode com>
- Cc: gnome-components-list gnome org
- Subject: Re: scripting with bonobo
- Date: Fri, 30 Jun 2000 12:07:42 +0200
On Thu Jun 29, 2000 at 09:00:05AM -0400, Miguel de Icaza wrote:
> >>>>> "Dirk-Jan" == Dirk-Jan C Binnema <bulkmail@dds.nl> writes:
>
> > Well, the add_object method gives you the opportunity to insert
> > object refs with no directly relation to your one, single host
> > object.
>
> That is one ugly hack.
No, it's not. You can't always have all the objects you need in one
tree (or at least accessible through that tree). In a project I did, I
got references from various places (developed independently), and
needed to insert these in the scripting environment. This wasn't your
average 'office-app needs scripting', though. But it proved very
useful, so I see no reason not to include such a call.
Also note that in the MS ActiveScript* case (and the way I thought of
it), using the 'add_object' is the only way to add references at all
-- the Host object is not used for this, the Host serves as a callback
for various events.
> > In Python and Perl you could get such refs to *new*
> > objects by creating them 'by hand' (i.e. creating a reference to
> > IDL:Evolution/Message:1.0); however, in VBScript/JavaScript (on
> > MS platform), there is no way to do 'CreateObject()' or
> > something (unless you add such method yourself).
>
> Yes, there is. Just use "GetObject".
IIRC, that's not available when using plain-vanilla VBScript.
-- Dirk-Jan.
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]