------ 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 RUBYOPT bygems
export GEM_HOME pt/local/lib/ruby/gems/1.8
export
RUBYLIB pt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.9.0
export RUBYGEMS pt/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 <span class
pple-style-span" styleont-family: 'Lucida Grande'; font-size: 12px; ">rb-appscript from svn (revision 436) successfully for :</span><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder">
</span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" 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'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;">and</span></font></div>
<div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;">ruby 1.9.0 (2007-12-25 revision 14709) [powerpc-darwin8.11.0] </span></font></div>
<div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" 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 class ebkit-block-placeholder"></div><div>but not on mine :[</div><div><br class ebkit-block-placeholder">
</div><div><br class ebkit-block-placeholder"></div><div>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.</div><div><br class ebkit-block-placeholder">
</div><div><br> </div></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" 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'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;">----------------------------------------------------------------------</span></font></div>
<div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><div>#! /usr/bin/env ruby19</div><div><br class ebkit-block-placeholder"></div><div>#require "rubygems"</div>
<div>require "appscript"</div><div>include Appscript</div><div><br class ebkit-block-placeholder"></div><div>p app('Finder').home.folders.get</div><div><br class ebkit-block-placeholder"></div></span></font><span class
pple-style-span" styleont-family: 'Lucida Grande'; font-size: 12px; ">----------------------------------------------------------------------</span></div>
<div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><span class
pple-style-span" styleont-family: 'Lucida Grande'; font-size: 12px; ">resulting in :</span></div>
<div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder"></span></font></div><div><span class
pple-style-span" styleont-family: 'Lucida Grande'; font-size: 12px; "><span class
pple-style-span" styleont-family: arial; font-size: 13px; "><div>
<span class
pple-style-span" styleont-family: 'Lucida Grande'; font-size: 12px; ">----------------------------------------------------------------------</span></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><div>
RubyMate r6354 running Ruby r1.9.0 (/opt/local/bin/ruby19)</div><div>>>> desktop.rb</div><div><br class ebkit-block-placeholder"></div><div>/opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `new' : Not a four-char-code string. ( ArgumentError )</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:15:in `pack_enum'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:204:in `<class:PositionSpecifier>'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:193:in `<module:AEMReference>'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/aemreference.rb:44:in `<top (required)>'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `require'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/_aem/codecs.rb:8:in `<top (required)>'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `require'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:14:in `<module:AEM>'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/aem.rb:10:in `<top (required)>'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `require'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:13:in `<module:Appscript>'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /opt/local/lib/ruby/site_ruby/1.8/appscript.rb:7:in `<top (required)>'</div>
<div> <span class
pple-tab-span" style hite-space:pre"> </span>from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `require'</div><div> <span class
pple-tab-span" style hite-space:pre"> </span>from /Users/yt/work/Ruby19/rb-appscript/Finder/desktop.rb:4:in `<main>'</div>
<div><br class ebkit-block-placeholder"></div></span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" 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: 'Lucida Grande'; font-size: 12px; ">----------------------------------------------------------------------</span></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><br class ebkit-block-placeholder">
</span></font></div><div><font class
pple-style-span" face #39;Lucida Grande'" size"><span class
pple-style-span" styleont-size: 12px;"><div>i suspect my environment variables are wrong for ruby19 :</div><div>
<br class ebkit-block-placeholder"></div><div><div>export RUBYOPT bygems</div><div>export GEM_HOME pt/local/lib/ruby/gems/1.8</div><div>export RUBYLIB pt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/site_ruby/1.9.0</div>
<div>export RUBYGEMS pt/local/lib/ruby/site_ruby/1.8</div><div><br> </div><div>is there somewhere a README to understand how ruby 1.9 (versus 1.8 ?) load the libs ???</div><div><br class ebkit-block-placeholder"></div>
<div>best,</div></div></span></font></div></span></span></font></div></span></span>-- <br>yvon
</div>
------ art_1113_26695989.1201983685366--