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

Re: Interesting?


  • Subject: Re: Interesting?
  • From: Arthur J Knapp <email@hidden>
  • Date: Sun, 03 Feb 2002 11:59:13 -0500

> Date: Sat, 2 Feb 2002 23:59:03 -0500
> From: Victor Yee <email@hidden>
> Subject: Re: Interesting?

> I was hoping that I was able to store the handler in a list, similar to
> storing
> a script object, and somehow have it execute in some manner.

You can set a list item, or any variable, to a handler, the problem
is finding the right varible-scope that will let you execute the handler:

property hold_a_handler : missing value

on z()
beep 2
return true
end z

set x to {1, 2, 3, z} --> {1, 2, 3, +handler z;}

x's item -1 --> +handler z;

set hold_a_handler to x's item -1

hold_a_handler() --* beeps 2, --> true


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://mtlab.ecn.fpu.ac.jp/scripting/Jcode_osax.html>
on error number -128
end try
}


  • Prev by Date: Re: Interesting?
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: Interesting?
  • Next by thread: Re: Interesting?
  • Index(es):
    • Date
    • Thread