Women in Technology

Hear us Roar



Article:
  Controlling Your Mac with AppleScript and Java
Subject:   NSAppleScript apparently crashes in Leopard
Date:   2009-03-28 17:11:47
From:   Chris_G
I used this technique to get my jEdit/AppleScript/After Effects stuff to work (and did better implementation after i received no response to my comment :-( ).
Well, I've been trying to figure out a way to use another technique because apparently, in Leopard, this will not work with garbage-collected apps (like jEdit I suppose) and will crash the host app. It is a "known bug" and Apple seems to be dragging their feet regarding this NSAppleScript bug.
Any clues as to what to do instead? If anything?
thanks
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • NSAppleScript apparently crashes in Leopard
    2009-03-28 19:18:53  Chris_G [View]

    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
    rtime.exec()
    to execute the osascript command with a compiled AS script in the same folder (which just runs the javascript file in AE). Simple!