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: Wed, 18 Apr 2012 12:16:56 -0500
On Apr 18, 2012, at 11:09, Tetsuro Kurita wrote:
> Following code will be better.
>
> on myHandlerName()
> display dialog "Yes!"
> end myHandlerName
>
> set broker to run script "script
> on do(target)
> target's myHandlerName()
> end do
> end script
> return result"
>
> broker's do(me)
>
> Above code can avoid to copy the script object indicated by "me".
______________________________________________________________________
Hello Tetsuro,
Nice.
Thank you very much.
The overhead is less, and it's consequently a good bit faster.
--
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