Re: Scripting additions and X
Re: Scripting additions and X
- Subject: Re: Scripting additions and X
- From: Shane Stanley <email@hidden>
- Date: Tue, 23 Oct 2001 08:35:06 +1000
On 23/10/01 12:56 AM +1000, Bill Cheeseman, email@hidden,
wrote:
>
In the Mac OS X Finder, if you do a Show Info on the droplet, is the
>
checkbox for "Run in Classic" (or words to that effect) checked? That would
>
explain it.
But by that logic, all my old scripts that call Classic scripting additions
should work fine, and that's not the case. Other scripts fail when they hit
calls to other scripting additions.
>
>
Or, had the script been compiled while the machine was booted into Mac OS 9?
>
If so, maybe it kept a persistent reference to the scripting addition and to
>
the Mac OS 9 version of StuffIt Engine.
I thought this might be the case too. But I wrote a new script using the raw
code, saved it as a Classic applet, and it worked too.
>
>
I assume the script doesn't use the documented technique to force a
>
scripting addition to run in the Classic environment (a tell block to a
>
variable set to an alias to the scripting addition, nested in a using terms
>
from block, and so on).
No -- as I said, an old script.
>
Or: In AppleScript 1.6, applets had to be saved as classic applets or Mac OS
>
X applets, and I believe an applet saved under AppleScript 1.6 as a classic
>
applet automatically runs in Classic even under AppleScript 1.7. In
>
AppleScript 1.7, although there is only one "universal" form of applet shell
>
for all environments, the old rules still apply to older applets that were
>
saved for a particular environment. Perhaps that explains it.
I still can't see why (at least) one addition works, while others fail.
Curious.
--
Shane Stanley, email@hidden