On 4/5/2011 9:15 AM, bT wrote:
I did a set createObject on the script of windoweyes and it says
it can not create it, but can create the application object. Why is this
I read something about that it must be internal only.
Is this true? Or is ther a way to do it?
That is true. The Script object exposes methods and properties that are
expected to already exist in external scripting environments, or that
are impossible to do without access to certain internal state of the
script interpreter itself. Thus, there's no way to create one; the only
way to get one is to be given one when your internal script is launched.
(ConnectObject is one of the big examples of an impossible-to-do method
- we can only do ConnectObject because ActiveScript gives us access to
an automation object that contains all of your script's global methods.)
I guess the question is how to create a ActiveScript hosted object?
ActiveScript is the name for a specific technology implemented by
VBScript and JScript, as well as some third-party scripting languages
like ActivePython. "ActiveScript hosted scripts" is a slightly more
technical (though still not entirely accurate) term for what we usually
call "internal" scripts.