Re: Run Handler-Name from Text?
Re: Run Handler-Name from Text?
- Subject: Re: Run Handler-Name from Text?
- From: Shane Stanley <email@hidden>
- Date: Tue, 17 Apr 2012 12:46:22 +1000
On 17/04/2012, at 12:24 PM, Christopher Stone wrote:
> I'm trying to build a lookup table with criteria and associated handler-names.
>
> From this table I want to lookup a specific criterion/handler, return the handler-name, and execute the handler.
>
> set lookUpTable to "
> myCriterion myHandlerName()
> "
>
> The handler-name returns as text, and I can't seem to find a way to get that to execute.
>
> Is there a way to do this?
I'd be very, very surprised if there were.
Seems an odd way of doing things, though. Why not nested calls?
on doSomething(x)
if x ="myCriterion" then
myHandlerName()
...
--
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