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: Thu, 19 Apr 2012 09:38:12 +0100
Christopher Nebel wrote on Wed, 18 Apr 2012 21:56:26 -0700:
>set fp to handler_for("g")
>fp() --> "g!"
Just to add that the variable used to invoke the handler (fp in this
case) has to be a global, property, or run-handler variable. It doesn't
work with locals — although they can be used to hold the value
temporarily if required.
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