• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Running from what?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Running from what?
  • Next by Date: Re: applescript-users digest, Vol 2 #71 - 13 msgs
  • Previous by thread: Re: Running from what?
  • Next by thread: Re: Running from what?
  • Index(es):
    • Date
    • Thread