• 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: Work the Scripting Addition without restarting....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Work the Scripting Addition without restarting....


  • Subject: Re: Work the Scripting Addition without restarting....
  • From: Jon Pugh <email@hidden>
  • Date: Fri, 9 Nov 2001 15:07:33 -0800

At 8:33 AM -0800 11/9/2001, Brian Johnson wrote:
>However, before I add a "run script '5'" to all my CGI run handlers, is there a downside to doing this?

Time and memory.

It takes time, a potentially considerable amount, as well as a large chunk of memory, so if either are in short supply (and they always are) then you should be careful about when you do this.

Specifically, you should probably only do this when you actually need to install a scripting addition, which is when the time and memory hit will be acceptable in exchange for the functionality.

As an esoteric detail, I should point out that if a scripting addition stores any info in its refcon, reloading the scripting additions will probably overwrite the refcon, resulting in a leak. For example, my "set cursor to" scripting addition keeps the acur resource (detached) in its refcon for busy cursors so that it knows which cursor to switch to next. I don't know of any other scripting additions which do this sort of thing, as it is mildly skanky.

Jon


  • Follow-Ups:
    • Re: Work the Scripting Addition without restarting....
      • From: "J.B. Stewart" <email@hidden>
    • Re: Work the Scripting Addition without restarting....
      • From: AppleScript Greg <email@hidden>
  • Prev by Date: Re: Convert a string into a list without Delimiters
  • Next by Date: Re: Work the Scripting Addition without restarting....
  • Previous by thread: Re: Work the Scripting Addition without restarting....
  • Next by thread: Re: Work the Scripting Addition without restarting....
  • Index(es):
    • Date
    • Thread