GetObject

JScript3.0+Syntax

GetObject(path)

GetObject(path, app.type)

Description

The GetObject function returns a reference to an Automation object from a file. The function can take up to two parameters. The path parameter represents the full path and name to the file containing the object you wish to retrieve.

Note

Some of the applications you can retrieve objects from allow you to activate only part of the file. This can be achieved by placing an exclamation point, !, at the end of the path followed by the string that specifies the part you want to activate.

The app.type attribute is the program ID or formal definition of the object. The app portion represents the name of the application providing the object, and the type designates ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.