• 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: 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

  • Follow-Ups:
    • Re: Run Handler-Name from Text?
      • From: Tetsuro Kurita <email@hidden>
    • Re: Run Handler-Name from Text?
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Temperature sensors
  • Next by Date: Parsing Excel files for Comments
  • Previous by thread: Re: Run Handler-Name from Text?
  • Next by thread: Re: Run Handler-Name from Text?
  • Index(es):
    • Date
    • Thread