[TxMt] exit

Charilaos Skiadas skiadas at hanover.edu
Wed Feb 14 23:51:01 UTC 2007


On Feb 14, 2007, at 6:02 PM, Juan wrote:
> 	Is it correct to use
> 	exit_discard                exit 200;
> 	.....
> in Ruby??

You should use the library exit_codes.rb, situated under Support/lib.  
So you could for instance do:

#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
TextMate.exit_insert_text("Hi there")


Assuming we are talking about a TM command here.

> -- juan falgueras

Haris





More information about the textmate mailing list