Re: How to simulate C's function pointer in AppleScript?
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