Re: Interesting?
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
}