Hi.

I wonder if anyone has successfully gotten iTerm to open a new session
within a terminal window and execute commands using RubyOSA?

  http://rubyosa.rubyforge.org/

I can do this from the Apple ScriptEditor but not using OSA. The
problem, in a nutshell, is that

  iterm = OSA.app( 'iTerm' )

returns an instance of OSA::ITerm::Application where all of the useful
methods for working with terminals & sessions are in
OSA::ITerm::ITermApplication and I cannot seem to find out how to go
from one to the other. (My primary sources of info are the RubyOSA
docs, the output of rdoc-osa --name iTerm, and Google).

I note that this distinction is not visible in ScriptEditor and that
pointing OSA at another app (e.g. iTunes as in the examples for OSA)
seems to yield an immediately useful application object.

Is this perhaps a problem with iTerm not supporting introspection
properly (even if ScriptEditor can do it)? Or maybe a bug in RubyOSA?

If anyone can help me I'd be much obliged.

Regards,

Matt

-- 
Matt Mower :: http://matt.blogs.it/