• 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: Design Report for Scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design Report for Scripts?


  • Subject: Re: Design Report for Scripts?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Sat, 21 Nov 2015 10:18:12 -0500

On Nov 21, 2015, at 10:02 AM, Yvan KOENIG wrote:

>
>> Le 2015/11/21 à 15:37, S. J. Cunningham <email@hidden> a écrit :
>>
>>
>> On Nov 20, 2015, at 3:59 PM, Stan Cleveland wrote:
>>
>>> Here are some other syntax issues to keep in mind:
>>> 1. As for the "on" keyword, you must also exclude "on idle", "on quit", and "on reopen".
>>> 2. Don’t forget about the "on error" that may appear inside a "try" block.
>>
>> I'm not sure you want to exclude these.  Properties, globals, and locals can appear in them just as well and the rationale for listing them is the same as that for user handlers.
>>
>> Steve
>
> As far as I know, on error is not the beginning of a handler so there is no reason to extract « error ».
> Did you ever try to define a property between on error and end try ?

I'm not referring to defining a property in a handler. Rather, reporting that one is being used there as part of the Design Report.  Referring back to my previous comments, I don't know if I need a global in an "on error" for a property in the library to be recognized.  Probably not, as it will be declared in the enclosing handler.  I definitely need them for "on quit",  I've never used "on reopen" so I don't know.  Never heard of it as a matter of fact :)

Steve
------------------
OS X 10.6.8, AppleScript 2.1.2


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Design Report for Scripts? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)
 >Re: Design Report for Scripts? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Design Report for Scripts?
  • Next by Date: AppleEvents: Send port for process has no send right, port=( port:37207/0x9157 rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526)
  • Previous by thread: Re: Design Report for Scripts?
  • Next by thread: Re: Design Report for Scripts?
  • Index(es):
    • Date
    • Thread