--- run_script.rb.bak
+++ run_script.rb
@@ -1,5 +1,6 @@
 require "#{ENV["TM_SUPPORT_PATH"]}/lib/scriptmate"
 require "cgi"
+require 'pathname'
 
 $SCRIPTMATE_VERSION = "$Revision: 8136 $"
 
@@ -46,6 +47,7 @@
             url, display_name = '', 'untitled document';
             unless file == "-"
               indent += " " if file.sub!(/^\[/, "")
+              file = Pathname.new(file).realpath.to_s
               url = '&amp;url=file://' + e_url(file)
               display_name = File.basename(file)
             end
@@ -54,9 +56,11 @@
             "</a> in <strong>#{CGI::escapeHTML display_name}</strong> at line #{line}<br/>"
           elsif line =~ /(\[[^\]]+\]\([^)]+\))\s+\[([\w\_\/\.]+)\:(\d+)\]/
             spec, file, line = $1, $2, $3, $4
+            file = Pathname.new(file).realpath.to_s
             "<span><a style=\"color: blue;\" href=\"txmt://open?url=file://#{e_url(file)}&amp;line=#{line}\">#{spec}</span>:#{line}<br/>"
           elsif line =~ /([\w\_]+).*\[([\w\_\/\.]+)\:(\d+)\]/
             method, file, line = $1, $2, $3
+            file = Pathname.new(file).realpath.to_s
             "<span><a style=\"color: blue;\" href=\"txmt://open?url=file://#{e_url(file)}&amp;line=#{line}\">#{method}</span>:#{line}<br/>"
           elsif line =~ /^\d+ tests, \d+ assertions, (\d+) failures, (\d+) errors\b.*/
             "<span style=\"color: #{$1 + $2 == "00" ? "green" : "red"}\">#{$&}</span><br/>"
