Re: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
Re: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
- Subject: Re: Re: Highlights of AppleScript 1.5.5 in Mac OS 9.1
- From: email@hidden
- Date: Wed, 10 Jan 2001 10:51:18 -0800
>>>NG>>>There are a lot of instances of where scripting additions are
considerably slower than "native" AppleScript code. I often don't
understand what the point of the Apple-provided osaxen is for. If the
AppleScript team wants to implement a rounding command, why not just build
it into the core language?
There are several good questions here. First, it's only recently that
Scripting Additions have become slower than AppleScript. Actually
AppleScript has become faster than Scripting additions and it is entirely
possible that the culprit has been the Process Manager which now seems to
have been reworked. If that's the case, then all bets are off on OSAX
being slower than native AppleScript.
As to why they made the choice to use extensions rather than build the
functionality into the language, I'd say it makes sense to me. The
AppleScript language itself, in its pure form without OSAX is basically
logic and programming with no connection to the Mac or the outside world.
It's repeat loops, if statements, idle handlers, setting, getting,
ignoring, trying, erroring etc. Osax provide access to the system and the
mac and the user.
If the speed of executing Osax commands is boosted significantly then I'd
say the structure of using the language for logic and the framework and
Osax for commands beyond the context of the script makes perfect sense.
ES