• 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
Speed of MRJ Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Speed of MRJ Scripting


  • Subject: Speed of MRJ Scripting
  • From: "Kornhaus, John" <email@hidden>
  • Date: Thu, 27 Sep 2001 16:14:28 -0400

I've started experimenting with AppleScript support in MRJ 2.2.5. While I am
impressed with the depth of the automagically generated support for
AppleScript, I have found it to be nearly unusable for scripting the
interface of my Swing-based application because of its horrifyingly slow
speed.

The code I have been given to experiment with opens a Swing frame with a
not-too-complex hierarchy consisting of ~30 components nested no more than 5
levels deep. I have written a script to give names to the 10 components I am
interested in controlling via AppleScript. Running this script can take
several minutes or more.

I next wrote a script to change the text in a JTextField or change the
selected value in a JComboBox. Whether I was explicitly identifying the path
to the component or referring to it by the name I had previously assigned,
the script took a minute or more to simply click a few buttons and enter
some text. I can do it faster by manually driving the interface!

So, am I doing something wrong, or is MRJ scripting execution speed that
bad? Am I missing something here?

I am working on adding new functions to the application specifically for
access to the object model rather than futzing with the interface, but I
fear execution speed will be no better. Has anyone had any luck with this?



John Kornhaus
Senior Software Engineer
Artesia Technologies


  • Prev by Date: Re: Back to Adoption Barriers (was Re: Applescript Studio announced today!)
  • Next by Date: RE: Hacking the Mac via AppleScript
  • Previous by thread: Re: Back to Adoption Barriers (was Re: Applescript Studio announced today!)
  • Next by thread: RE: Back to Adoption Barriers (was Re: Applescript Studio announc ed today!)
  • Index(es):
    • Date
    • Thread