I learned that rb_appscript is a cool way to do AppleScript-like things from Ruby. It installs the "osax" module, which I use it in PetesHelp.rb
To install it, I did
sudo gem install rb-appscript
Then I had to add this to my .bashrc:
# Set up Ruby
#
if [[ -d /Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1 ]]; then
export RUBYLIB=/Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1:$RUBYLIB
export RUBYLIB=/Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1/src/lib:$RUBYLIB
fi
Docs are available at file:///Library/Ruby/Gems/1.8/gems/rb-appscript-0.5.1/doc/index.html
rpm -e ruby-devel-1.6.7-2 \
ruby-libs-1.6.7-2 \
ruby-1.6.7-2 \
ruby-tcltk-1.6.7-2 \
ruby-docs-1.6.7-2 \
eruby-libs-0.9.7-1 \
eruby-libs-0.9.7-1 \
eruby-0.9.7-1 \
irb-1.6.7-2 \
eruby-devel-0.9.7-1
Then I installed ruby 1.8.0 as follows: I web'd to the
Ruby website and get
the tarball, then
<as root>
cd /usr/src
tar xf ruby-1.8.0.tar
rm ruby-1.8.0.tar
cd ruby-1.8.0
./configure
make
make test
make install
The "make install" gave several errors but seemed to work.