Skip navigation.
 
mlRe: NSAppleScript crash on executeAndReturnError
FROM : Nick Zitzmann
DATE : Sun Nov 28 23:08:22 2004

On Nov 28, 2004, at 1:58 PM, James J. Merkel wrote:

> which I would expect, but the application also (sometimes) crashes.
> I would have expected that, since an error was detected, a crash would
> not occur.
> Is this a bug in NSAppleScript. or am I doing something else wrong?


Are you running the AppleScript in a thread other than the main thread?
NSAppleScript is not thread-safe, and may crash the application if used
from a thread other than the main thread.

Nick Zitzmann
<http://www.chronosnet.com/>

Related mailsAuthorDate
mlNSAppleScript crash on executeAndReturnError James J. Merkel Nov 28, 21:58
mlRe: NSAppleScript crash on executeAndReturnError Charles Srstka Nov 28, 22:51
mlRe: NSAppleScript crash on executeAndReturnError Nick Zitzmann Nov 28, 23:08
mlRe: NSAppleScript crash on executeAndReturnError James J. Merkel Nov 29, 01:51
mlRe: NSAppleScript crash on executeAndReturnError Charles Srstka Nov 29, 02:22
mlRe: NSAppleScript crash on executeAndReturnError James J. Merkel Nov 29, 03:36