RE: Why are compiled scripts slower than from Script Editor?
RE: Why are compiled scripts slower than from Script Editor?
- Subject: RE: Why are compiled scripts slower than from Script Editor?
- From: "Sprague, Graham" <email@hidden>
- Date: Thu, 20 Mar 2003 09:22:49 -0500
That's not the case. It's already unchecked. Even if it was checked the
script would not run because I have some "do shell script" commands in my
script which would cause an error.
>
----------
>
From: Chris Espinosa
>
Sent: Wednesday, March 19, 2003 5:31 PM
>
To: email@hidden
>
Cc: Sprague, Graham
>
Subject: Re: Why are compiled scripts slower than from Script Editor?
>
>
----- Original Message -----
>
From: "Sprague, Graham" <email@hidden>
>
Sent: Wednesday, March 19, 2003 12:45 PM
>
Subject: RE: Why are compiled scripts slower than from Script Editor?
>
>
>
> After running several test as both a compiled app and in the script
>
editor
>
> window I have determined that the TruBlueEnvironment seems to be the
>
> culprit. When my app runs as a compiled app I get TruBlueEnvironment CPU
>
> usage at about 20-30%. When running from the script editor the CPU usage
>
of
>
> TruBlueEnvironment go way up to 60-70%.
>
>
What this implies is that your AppleScript applet is running in Classic.
>
This penalizes it for several reasons: first, Classic is essentially an
>
"emulation mode" and has to go through several bottlenecks to communicate
>
to
>
the Mac OS X host; and second, all AppleEvents sent from your applet have
>
to
>
cross the Classic/Mac OS X barrier each time.
>
>
Select your applet in the Finder, choose Get Info, and see if the "Open in
>
the Classic environment" box is checked. If it is, uncheck it. Then
>
report
>
results.
>
>
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.