Controlling Your Mac with AppleScript and Java
Subject:   NSAppleScript apparently crashes in Leopard
Date:   2009-03-28 19:18:53
From:   Chris_G
Response to: NSAppleScript apparently crashes in Leopard

Okay, for anyone (anyone?) who stumbles upon this...
I have dispensed with NSAppleScript because of the horrible crash bug, and I am successfully accomplishing this by using Java (running BeanShell script) that writes to a javascript file in /tmp/, then uses
rtime = Runtime.getRuntime() and
to execute the osascript command with a compiled AS script in the same folder (which just runs the javascript file in AE). Simple!