Re: Run Handler-Name from Text?
Re: Run Handler-Name from Text?
- Subject: Re: Run Handler-Name from Text?
- From: Christopher Stone <email@hidden>
- Date: Mon, 16 Apr 2012 21:53:48 -0500
On Apr 16, 2012, at 21:38, Tom Robinson wrote: You should be able to do it with 'run script':
______________________________________________________________________
Hey Tom,
I've tried a number of variations of 'run script'.
Given this:
------------------------------------------------------------------------------------------------ on myHandlerNameB() return "Eureka! It works." end myHandlerNameB
set lookUpTable to " myCriterionA myHandlerNameA() myCriterionB myHandlerNameB() myCriterionC myHandlerNameC() "
set handlerToRun to do shell script "sed -nE 's/^myCriterionB +(.+)/\\1/p' <<< " & quoted form of lookUpTable ------------------------------------------------------------------------------------------------
Please demonstrate how to successfully make 'run script' use handlerToRun as a parameter.
Thank you.
-- Best Regards, 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