------art_1113_26695989.1201983685366
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I do have installed install rb-appscript from svn (revision 436)
successfully for :
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]

and

ruby 1.9.0 (2007-12-25 revision 14709) [powerpc-darwin8.11.0]

this version of rb-appscript has been tested from the developper itself, it
is well working on his computer with ruby 1.9.

but not on mine :[


notice that with the ruby 1.9 install i've added the suffix 19 (hence
ruby19, gem19 etc) and both are lying under /opt/local.



the simple script test :

----------------------------------------------------------------------
#! /usr/bin/env ruby19

#require "rubygems"
require "appscript"
include Appscript

p app('Finder').home.folders.get

----------------------------------------------------------------------

resulting in :

----------------------------------------------------------------------
RubyMate r6354 running Ruby r1.9.0 (/opt/local/bin/ruby19)
>>> desktop.rb

/opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `new' : Not a
four-char-code string.  ( ArgumentError )
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in
`pack_enum'
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:204:in
`<class:PositionSpecifier>'
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:193:in
`<module:AEMReference>'
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:44:in `<top
(required)>'
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `require'
  from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `<top
(required)>'
  from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `require'
  from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `<module:AEM>'
  from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:10:in `<top (required)>'
  from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `require'
  from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in
`<module:Appscript>'
  from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:7:in `<top
(required)>'
  from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `require'
  from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `<main>'

----------------------------------------------------------------------

i suspect my environment variables are wrong for ruby19 :

export RUBYOPTbygems
export GEM_HOMEpt/local/lib/ruby/gems/1.8
export
RUBYLIBpt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.9.0
export RUBYGEMSpt/local/lib/ruby/site_ruby/1.8


is there somewhere a README to understand how ruby 1.9 (versus 1.8 ?) load
the libs ???

best,
-- 
yvon

------art_1113_26695989.1201983685366
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br clear
ll">I do have installed install&nbsp;<span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; ">rb-appscript from svn (revision 436) successfully for :</span><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder">
</span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;">ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]</span></font></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;">and</span></font></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;">ruby 1.9.0 (2007-12-25 revision 14709) [powerpc-darwin8.11.0]&nbsp;</span></font></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><div>
this version of rb-appscript has been tested from the developper itself, it is well working on his computer with ruby 1.9.</div><div><br classebkit-block-placeholder"></div><div>but not on mine :[</div><div><br classebkit-block-placeholder">
</div><div><br classebkit-block-placeholder"></div><div>notice that with the ruby 1.9 install i&#39;ve added the suffix 19 (hence ruby19, gem19 etc) and both are lying under /opt/local.</div><div><br classebkit-block-placeholder">
</div><div><br>&nbsp;</div></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;">the simple script test :</span></font></div><div>
<font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;">----------------------------------------------------------------------</span></font></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><div>#! /usr/bin/env ruby19</div><div><br classebkit-block-placeholder"></div><div>#require &quot;rubygems&quot;</div>
<div>require &quot;appscript&quot;</div><div>include Appscript</div><div><br classebkit-block-placeholder"></div><div>p app(&#39;Finder&#39;).home.folders.get</div><div><br classebkit-block-placeholder"></div></span></font><span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; ">----------------------------------------------------------------------</span></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; ">resulting in :</span></div>
<div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder"></span></font></div><div><span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; "><span class
pple-style-span" styleont-family: arial; font-size: 13px; "><div>
<span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; ">----------------------------------------------------------------------</span></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><div>
RubyMate r6354 running Ruby r1.9.0 (/opt/local/bin/ruby19)</div><div>&gt;&gt;&gt; desktop.rb</div><div><br classebkit-block-placeholder"></div><div>/opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `new&#39; : Not a four-char-code string. &nbsp;( ArgumentError )</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `pack_enum&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:204:in `&lt;class:PositionSpecifier&gt;&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:193:in `&lt;module:AEMReference&gt;&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:44:in `&lt;top (required)&gt;&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `require&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `&lt;top (required)&gt;&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `require&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `&lt;module:AEM&gt;&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:10:in `&lt;top (required)&gt;&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `require&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `&lt;module:Appscript&gt;&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:7:in `&lt;top (required)&gt;&#39;</div>
<div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `require&#39;</div><div>&nbsp;<span class
pple-tab-span" stylehite-space:pre">	</span>from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `&lt;main&gt;&#39;</div>
<div><br classebkit-block-placeholder"></div></span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><span class
pple-style-span" styleont-family: arial; font-size: 13px; "><div>
<span class
pple-style-span" styleont-family: &#39;Lucida Grande&#39;; font-size: 12px; ">----------------------------------------------------------------------</span></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><br classebkit-block-placeholder">
</span></font></div><div><font class
pple-style-span" face#39;Lucida Grande&#39;" size"><span class
pple-style-span" styleont-size: 12px;"><div>i suspect my environment variables are wrong for ruby19 :</div><div>
<br classebkit-block-placeholder"></div><div><div>export RUBYOPTbygems</div><div>export GEM_HOMEpt/local/lib/ruby/gems/1.8</div><div>export RUBYLIBpt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.9.0</div>
<div>export RUBYGEMSpt/local/lib/ruby/site_ruby/1.8</div><div><br>&nbsp;</div><div>is there somewhere a README to understand how ruby 1.9 (versus 1.8 ?) load the libs ???</div><div><br classebkit-block-placeholder"></div>
<div>best,</div></div></span></font></div></span></span></font></div></span></span>-- <br>yvon
</div>

------art_1113_26695989.1201983685366--