Re: Script Applet rejects first handler call
Re: Script Applet rejects first handler call
- Subject: Re: Script Applet rejects first handler call
- From: email@hidden
- Date: Wed, 1 Aug 2001 19:17:36 -0400
On Wed, 01 Aug 2001 07:52:51 -0400, "Marc K. Myers" <email@hidden> asked,
>
> Here's something annoying: When I call a handler in a script applet from
>
> another script, I get an error on the first call.
>
>
Does this work for you? It works locally but I don't have a server to
>
test it on.
>
>
tell application "Test"
>
launch
>
h()
>
end tell
I'm not trying to do this across a network. I'm just having one script call
another. Launching the script first works fine, but is not a suitable
workaround for a CGI script, the scripts that I'm using to interface to
ListSTAR, or anyplace where the client and the server are not tightly
synchronized.
When I configure a project to use a script server and some clients, I want only
loose coupling between the two. When a client needs a service, the server may
be up or it may not. I (the user) may have shut it down, one of the clients may
have shut it down, it may have shut itself down, or it may have crashed. I
don't want every "tell" block to have to include a "launch"!
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden