Re: Handlers in a variable
Re: Handlers in a variable
- Subject: Re: Handlers in a variable
- From: Chris Page <email@hidden>
- Date: Tue, 19 Jan 2016 17:23:46 -0800
On Jan 18, 2016, at 10:01 AM, Stockly, Ed < email@hidden> wrote:
This works. ----------------------
property someHandler : ""
set aValue to "3" on double(aNumber) return aNumber * 2 end double on call(someHandler, aValue) someHandler(aValue) end call
set someHandler to double
someHandler(4) --=> 8
call(double, 4)
Most of that is the same as the OP's code. What are you trying to convey?
-- Chris Page The other, other AppleScript Chris
|
_______________________________________________
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