On 3/6/07, <b class="gmail_sendername">Piero D'Ancona</b> <<a href="mailto:pierodancona@gmail.com">pierodancona@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I installed ruby 1.8.5 and appscript on my mac<br>(and it is hugely better that the schizolanguage<br>of AppleScript).<br><br>Now if I define a command in TextMate like<br><br>#!/usr/bin/env ruby<br>require "appscript"
<br>include Appscript<br>te = app('TextEdit')<br><br>TextMate complains it (he) cannot find<br>appscript.rb (no use to give the explicit<br>path since then TextMate cannot find the<br>files require'd inside appscript, etc etc).
<br><br>Clearly, I must set new paths,<br>but how? and maybe I should also tell<br>TextMate to use 1.8.5 instead of 1.8.2<br>I'm sure this is easy but have no idea<br>how to do it. Any help?<br><br>Thanks a lot,<br>Piero
</blockquote><div><br>paths and gui applications are a bit complex, if you aren't using bash, textmate won't absorb your path environment variable without defining it in ~/.MacOSX/environment.plist. for more info:
<br> <<a href="http://macromates.com/textmate/manual/shell_commands">http://macromates.com/textmate/manual/shell_commands</a>><br><br>cheers,<br>jean-pierre<br><br></div></div>