• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Run Handler-Name from Text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Run Handler-Name from Text?
      • From: Christopher Stone <email@hidden>
References: 
 >Run Handler-Name from Text? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Run Handler-Name from Text?
  • Next by Date: Re: Run Handler-Name from Text?
  • Previous by thread: Re: Run Handler-Name from Text?
  • Next by thread: Re: Run Handler-Name from Text?
  • Index(es):
    • Date
    • Thread