[TxMt] Re: how to output like RubyMate?

Matt Neuburg matt at tidbits.com
Mon Feb 25 17:50:04 UTC 2008


On 2/24/08 4:53 PM, in article
86549EFB-605A-4C25-8198-4ABAF04EFB0F at ldaley.com, "Luke Daley"
<ld at ldaley.com> wrote:

> 
> On 23/02/2008, at 6:15 AM, Matt Neuburg wrote:
> 
>> I've got a Ruby script here, and I'd like its output to act like
>> RubyMate's
>> output - it should appear progressively as I call "puts" or "p" or
>> whatever.
>> In fact, I'd like the output to piggyback on whatever RubyMate is
>> doing.
>> 
>> But the script is not being run under RubyMate because it's part of
>> a small
>> bundle I've written myself and the place we're starting is a .txt file
>> anyway (in other words, I've written a bundle that processes .txt
>> files
>> using a Ruby script).
>> 
>> I'm betting there is some easy way to tell the bundle command that
>> calls
>> this Ruby script to output like RubyMate. What would that be? Thx - m.
> 
> Check out RubyMate itself and /Applications/TextMate.app/Contents/
> SharedSupport/Support/lib/scriptmate.rb

Obviously, but I was hoping for actual instructions. m.

-- 
matt neuburg, phd = matt at tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>






More information about the textmate mailing list