I'm using the ruby run script cmd-r and have found that I can't get statements inside the following block: If __FILE__ == $0 Unless I extend it to: If __FILE__ == $0 || File.basename($0) =='tmruby.rb' Any help is much appreciated. ~tim