[TxMt] [TextMate] Help With Ruby Command

Timothy Martens timfm at hawaii.rr.com
Tue Oct 26 23:17:50 UTC 2004


On Oct 26, 2004, at 1:57 AM, Jackie Chappell wrote:

> ruby <<END
> task_text = "$TM_SELECTED_TEXT"
> task_text.gsub!("\[ \] ","[X] ")
> print ""
>
> from = File.basename("$TM_FILEPATH",".txt")
> comp_time = Time.now
> datestamp = comp_time.strftime("%d/%m/%Y at %H:%M")
>
> File.open("/Users/me/completed.txt",'a'){|archive_file|
>    archive_file.puts
>    archive_file.puts "#{task_text} => in #{from} on #{datestamp}"
> }
> END


/bin/sh: line 1: ruby: command not found

why? do I need the full path in line 1?

  -t




More information about the textmate mailing list