• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why are compiled scripts slower than from Script Editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are compiled scripts slower than from Script Editor?


  • Subject: Re: Why are compiled scripts slower than from Script Editor?
  • From: "Chris Espinosa" <email@hidden>
  • Date: Wed, 19 Mar 2003 14:31:15 -0800

----- 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.

  • Prev by Date: Re: max script size
  • Next by Date: Scripting Quark on B&W G3 hard disk problems
  • Previous by thread: RE: Why are compiled scripts slower than from Script Editor?
  • Next by thread: Re: Why are compiled scripts slower than from Script Editor?
  • Index(es):
    • Date
    • Thread