Re: Running from what?
Re: Running from what?
- Subject: Re: Running from what?
- From: webguide <email@hidden>
- Date: Sun, 26 Nov 2000 07:30:18 +1300
G'day Dave,
>
Your solution falls foul of the problem that
>
OneClick doesn't always clean up behind itself if a called AppleScript
>
terminates with an error. So, although what you wrote is theoretically
>
sound, the first time you click the OneClick button after hitting an error,
>
you'll get an immediate error and the only way out is to quit the
>
application and relaunch (sometimes, a restart of the machine is necessary).
there'as an extremely simple solution to your problem - use the OC 'open'
command rather than the Applescript command. It doesn't execute as fast
as using 'Applescript' but it's 100%, absolutely reliable and doesn't
suffer the problem you refer to.
Generally speaking, embedding AS (in OC) works OK but (IME) it doesn't
enjoy running many repetitions of scripts which move into and out of
several tell blocks.
We moved to the open command for some complex AS we were calling and have
_never_ had a failure (and we use these buttons several _thousand_ times
a day)
cheers
k