help loading script objects
help loading script objects
- Subject: help loading script objects
- From: email@hidden
- Date: Wed, 7 Mar 2001 12:09:34 EST
Is it possible to load a file containing a script object? I've tried loading
it as I do handler libraries, and refer to it the form:
tell myScriptObject to doSomeHandler()
but it returns an error. I've placed the script object inside a handler and
called that handler before trying to refer to the script object, but this
also results in error.
Normally I use libraries of routines and libraries of global variables
declared inside of a handler. But this is tedious in that variables have to
be declared twice before they can called directly from the "client" script.
With script objects I can use properties in place of variables. The
particular object I wanted to load was for use with BBEdit & it's grep
faculties; it contains dozens of properties.