Re: Run Handler-Name from Text?
Re: Run Handler-Name from Text?
- Subject: Re: Run Handler-Name from Text?
- From: Nigel Garvey <email@hidden>
- Date: Tue, 17 Apr 2012 22:45:24 +0100
Christopher Stone wrote on Mon, 16 Apr 2012 21:24:14 -0500:
>Hey Folks,
>
>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?
This sort of thing?
on myHandlerName()
display dialog "Yes!"
end myHandlerName
run script "on run {fred}
tell fred to myHandlerName()
end" with parameters {me}
NG
_______________________________________________
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