# Mac Question: How to click on file ref in a log file and aut

**URL:** <https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766>\
**Category:** Rails\
**Created:** [June 13, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766 "2007-06-13T22:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [June 13, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766/1 "2007-06-13T22:44:34Z")

</div>

Hi all,

Does anyone know how to arrange on the Mac so that if I:  
(a) see a file reference in a Rails log file (see below for example)  
that I  
could then:  
(b) somehow highlight and hit a hot key combination such that that  
little  
application/helper then:  
© opened this file up in TextMate and displayed that line number

…extract…

./script/…/config/…/vendor/plugins/exception\_notification/lib/exception\_notifiable.rb:94:in  
`log\_error’

…

Tks  
Greg

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [June 14, 2007, 12:23am UTC](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766/2 "2007-06-14T00:23:49Z")

</div>

TextMate Footnotes does something similar to what you’re asking for.  
It won’t solve your problem but it might get you closer.

[http://blog.inquirylabs.com/2006/09/28/textmate-footnotes-v16-released/](http://blog.inquirylabs.com/2006/09/28/textmate-footnotes-v16-released/)

For hot-key combinations, you might need to write an app that  
registers a Mac OS X Service.

-faisal

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [June 14, 2007, 9:23am UTC](https://www.ruby-forum.com/t/mac-question-how-to-click-on-file-ref-in-a-log-file-and-aut/106766/3 "2007-06-14T09:23:41Z")

</div>

thanks Faisal - great suggestion - site seems to be down just at the  
moment  
but I’ll try later (or grab from the repository) - Greg
