TITLE
    AppleScript 1.3.2: Memory Leak Affects "Stay Open" Scripts
Article ID:
Created:
Modified:
58154
10/20/98
11/2/00

TOPIC

    This article describes a known condition relating to AppleScript version 1.3.2 distributed with Mac OS 8.5.


DISCUSSION

    Apple is aware of a memory leak involving AppleScript 1.3.2 which ships with Mac OS 8.5. AppleScript scripts saved as "stay open" applications, and which make calls to Scripting Additions (OSAX), will experience a memory leak over time leading to their ceasing to function. We are investigating this problem and will provide more information as it is available.

    Note that Mac OS 8.5.1 resolves this issue. The Mac OS 8.5.1 Update is available for download from Apple Software Updates sites.

    For Mac OS 8.5 users, a workaround follows:

    The work-around for the applet shell memory leak is to put all scripting addition commands inside a "Tell" block targeting an application. Since the Finder is always running, it is a good candidate for this purpose. For example, to use the "beep" command without leaking memory, you would write:

    tell application "Finder"
    beep
    end tell

    Please see the following articles for additional information:

    Article 26165: " About Mac OS 8.5.1 Update "
    Article 30865: " Mac OS: What is a Memory Leak? "

    This article can help you locate the software update mentioned here:

Document Information
Product Area: Apple Software
Category: AppleScript
Sub Category: General Topics
Keywords: ksts, kmos85

Copyright © 2000 Apple Computer, Inc. All rights reserved.