<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hey all,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>if i do, in a ruby file :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>#!/usr/bin/env ruby</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>require 'plist'</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>plist=Plist.parse_xml(my_info_plist)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>within TextMate i get :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" color="#ED5100" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><B>NameError</B></SPAN></FONT><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">: uninitialized constant Plist</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">altought this script is running well from terminal doing a :</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">> ruby essai.rb</SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT class="Apple-style-span" face="Lucida Grande" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;">the ruby used is the same (<FONT class="Apple-style-span" face="Helvetica" size="3"><SPAN class="Apple-style-span" style="font-size: 12px;">/opt/local/bin/ruby)</SPAN></FONT></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>i did setup within textmate some enverironnement variables :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>TM_RUBY => /opt/local/bin/ruby</DIV><DIV>RUBYOPT => -rrubygems</DIV><DIV>GEM_HOME => /opt/local/lib/ruby/gems/1.8</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>they all correspond to what i get in the Terminal ie :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>> which ruby</DIV><DIV>/opt/local/bin/ruby</DIV><DIV>> echo $RUBYOPT</DIV><DIV>-rrubygems</DIV><DIV>> echo $GEM_HOME</DIV><DIV>/opt/local/lib/ruby/gems/1.8</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>the, i don't understand where the prob comes from...</DIV></BODY></HTML>