Re: Running from what?
Re: Running from what?
- Subject: Re: Running from what?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 25 Nov 2000 07:58:47 -0800
On 11/25/00 2:43 AM, "John B. Stewart" <email@hidden> wrote:
>
on 11/24/00 8:06 PM, Paul Berkowitz at email@hidden wrote:
>
>
> Variable eOC
>
>
>
> AppleScript
>
> try
>
> -- your script
>
> set OneClick variable "eOC" to "OK"
>
> on error errMsg
>
> set OneClick variable "eOC" to errMsg
>
> end try
>
> End AppleScript
>
> If eOC <> "OK"
>
> Message eOC
>
> End If
>
>
>
or more simply
>
>
Variable Global eOC
>
eOC = False
>
>
AppleScript
>
try
>
-- your script
>
on error errMsg
>
set OneClick variable "eOC" to errMsg
>
end try
>
End AppleScript
>
>
If eOC
>
Message eOC
>
End If
>
>
>
Paul forgot to mention that passing parameters to AppleScript and back to OC
>
requires global variables.
>
>
John
>
>
This is correct. John forgot that AppleScript-Users list replies to the
sender by default, not to the list, and wrote this to me privately. Since he
referred to me in the third person, I imagine he intended this to reach the
list, so here it is.
Variable Global eOC
is correct. My error. Dave has since written back explaining that this
solution (even when fixed with Global) doesn't avoid the problem he has.
I'll reply separately if I come up with anything else.
--
Paul Berkowitz