Re: Passing a Handler at Runtime
Re: Passing a Handler at Runtime
- Subject: Re: Passing a Handler at Runtime
- From: Alex Zavatone <email@hidden>
- Date: Tue, 13 Sep 2011 20:37:23 -0700
Isn't there a call or do string routine?
On Sep 13, 2011, at 3:52 PM, Shane Stanley wrote:
> On Sep 14, 2011, at 7:40 AM, Rick Gordon wrote:
>>
>> It would preclude the possibility of drawing from multi-handler libraries, though.
>
> You could always have an identically named handler in each script that took the name of the required handler as an argument, and did the calling. Something like:
>
> on callHandler(aName)
> if aName = "sliceAndDice" then
> my sliceandDice()
> ...
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
>
> _______________________________________________
> 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
_______________________________________________
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