Re: Atomic scripts
Re: Atomic scripts
- Subject: Re: Atomic scripts
- From: Paul Skinner <email@hidden>
- Date: Wed, 7 Aug 2002 11:17:28 -0400
On Wednesday, August 7, 2002, at 03:31 AM, Brennan wrote:
Paul Skinner <email@hidden> wrote
property parent : me
The effect of 'me' as parent is to short-circuit (literally) the
automatic redirection of handlers, that are not defined in the script,
up the hierarchy of context.
Hmm. In the case of calling a handler that is not in the script, why
would this not lead to infinite recursion?
Because the AppleScript team codes well?
If you do this in Director/Lingo (slightly different syntax) it leads
to instantaneous and often spectacular system-level crashes.
on kill me
me.ancestor = me -- ancestor is lingo's word for 'parent'
me.crash() -- and unless you implement this handler, that's exactly
what happens
end
Ouch!
Brennan
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.