On Jul 2, 2006, at 2:45 PM, transfire / gmail.com wrote: > > 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 <<APPLESCRIPT >> 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. > > Well, it doesn't work but not because of terminals not opening. You have a syntax error in the actual page io.puts << APPLESCRIPT should be io.puts <<APPLESCRIPT # it's a heredoc