Re: Snow Leopard osax security and 'run script' with parameters
Re: Snow Leopard osax security and 'run script' with parameters
- Subject: Re: Snow Leopard osax security and 'run script' with parameters
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 8 Jan 2010 14:16:54 -0500
On Fri, Jan 8, 2010 at 2:00 PM, Stockly, Ed <email@hidden> wrote:
> Many of the do shell script solutions and solutions using script objects
> posted on this list are, technically, examples of dynamic code generation.
True. Building a command string for 'do shell script' is a form of
dynamic code generation, and therefore has the standard dynamic code
generation issues: the requirement for quoting [e.g. (quoted form of
X)], the need to be paranoid about sources of interpolated text, and
so on.
But generating dynamic shell code is also different from generating
dynamic AppleScript code, in that dynamic code processing is pretty
much all the shell *does*. There's no compiler for shell scripts, at
least not in general - the shell interpreter is nothing but an engine
for processing plain text input as commands. As such, it's rather
more efficient at it than AppleScript is.
--
Mark J. Reed <email@hidden>
_______________________________________________
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