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

References: 
 >Re: Run Handler-Name from Text? (From: Nigel Garvey <email@hidden>)
 >Re: Run Handler-Name from Text? (From: Tetsuro Kurita <email@hidden>)

  • Prev by Date: Re: Run Handler-Name from Text?
  • Next by Date: Re: [ANN]Scripting Helper App
  • Previous by thread: Re: Run Handler-Name from Text?
  • Next by thread: Re: Run Handler-Name from Text?
  • Index(es):
    • Date
    • Thread