• 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: Script in Script Editor MUCH faster than compiled app -- why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script in Script Editor MUCH faster than compiled app -- why?


  • Subject: Re: Script in Script Editor MUCH faster than compiled app -- why?
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 30 Apr 2003 12:10:05 -0700

On Tuesday, April 29, 2003, at 10:21 AM, Jeff Porten wrote:

I've got a script running which:

1) creates a Finder list of files in a given folder (numbering in the thousands)
2) opens each file for access sequentially
3) reads the file into a variable
4) and if the text contains a given string, adds this text to a FileMaker Pro database (in a nested tell)

All working just fine. The thing I don't get: it's MUCH faster when I've got the script open in Script Editor, than when I save it as a compiled app and launch it. Makes no sense to me. Why is this happening?

Assuming you're using Script Editor 1.x, it's probably that Script Editor is less friendly to background processes than applets are. This is also what leads to "delay" consuming most of your CPU when you use it in Script Editor. I believe Script Editor 2.0 fixes this.


--Chris Nebel
Apple Development Tools
_______________________________________________
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.

References: 
 >Script in Script Editor MUCH faster than compiled app -- why? (From: Jeff Porten <email@hidden>)

  • Prev by Date: Re: Error: Stack overflow
  • Next by Date: Re: Writing a script that mounts servers
  • Previous by thread: Re: Scripting Apple Mail
  • Next by thread: Re: Using tell application "name" where the name comes from GUI Script...
  • Index(es):
    • Date
    • Thread