From: transfire@... Date: 2006-07-03T03:45:54+09:00 Subject: Re: How to open a console and ruby a ruby script from ruby? Logan Capaldo wrote: > Eh, yeah but it's not ideal (You'll have to wait for X11 to start > usually, which it may or may not do automatically, I'm not sure. i > think it might if opened via the Finder but not from the command > line). > > What I would do is > > IO.popen("osascript", "w") do |io| > io.puts < tell Application "Terminal" > activate > do script "#{command_here}" > end tell > APPLESCRIPT > end > > This has the advantage of not opening a new instance of terminal if > one is already open, (but it will if necessary) and not requiring the > user to a) have X11 installed and b) have it running. Thanks. I added it to my balloon. Maybe it works? http://balloon.hobix.com/ballyhoo T.