Re: Fast Loading & updating of Handler Libraries
Re: Fast Loading & updating of Handler Libraries
- Subject: Re: Fast Loading & updating of Handler Libraries
- From: JJ <email@hidden>
- Date: Tue, 13 Nov 2001 23:19:15 +0100
>
Opinions needed.
>
>
Here what I want to do.
>
>
Create a template script that will at run time will autoload a complete
>
handler library.
>
The handler library will be a compiled run only script in a known location
>
on multiple machines(clients).
>
I will keep & update the library master on own machines.
>
>
And my questions:
>
>
Can the library be over 32k? How big is too big?
The biggest you can compile.
>
Also, I initially tried a script server assistant. But it failed when script
>
app "A" told script app "B" told script app "C" to use one of the script
>
server assistant handlers. Two levels I thinked worked but three didn't.
It shouldn't fail, but it's so difficult find errors when using many levels.
You could try enclose all your subroutines into try statements with on error
handlers, such as:
property level : "Level 3: "
on executehandler(parameters)
try
...
on error mssg
return level & mssg
end try
end executehandler
It should return to your level (1?) anything like
Error: "Level 2: doesn't understand \"Level 3: couldn't translate k into
integer\""
JJ