• 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: Atomic scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Atomic scripts
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Setting Frontmost to False
  • Next by Date: Re: Need XOR solution
  • Previous by thread: Re: Atomic scripts
  • Next by thread: Re: Atomic scripts
  • Index(es):
    • Date
    • Thread