• 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: How to simulate C's function pointer in AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to simulate C's function pointer in AppleScript?


  • Subject: Re: How to simulate C's function pointer in AppleScript?
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 23 Oct 2008 17:14:44 -0400

When you use (run script scriptObject), the code in the script object
is compiled just once at the the same time as the rest of the script -
before you ever run it.  When you use (run script "string"), the code
in the string is compiled on the spot at runtime.   Hence the
performance difference.  It's the same as eval { ... } vs eval "..."
in Perl.

The (run script "string") construct in Applescript is generally to be
used only as a mechanism of last resort.
 _______________________________________________
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: How to simulate C's function pointer in AppleScript? (From: has <email@hidden>)
 >Re: How to simulate C's function pointer in AppleScript? (From: AndrĂ© Berg <email@hidden>)
 >Re: How to simulate C's function pointer in AppleScript? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: How to simulate C's function pointer in AppleScript?
  • Next by Date: Re: choose file of type {}
  • Previous by thread: Re: How to simulate C's function pointer in AppleScript?
  • Next by thread: Re: How to simulate C's function pointer in AppleScript?
  • Index(es):
    • Date
    • Thread