
To install rb-appscript via RubyGems, run the following command in Terminal:
sudo gem install rb-appscript
RubyGems is included in Leopard's standard Ruby 1.8.6 installation. For other Ruby installations, you may need to install RubyGems first.
Installing the rb-appscript gem currently requires gcc, included in Apple's Developer Tools.
Existing gem-based installations can be updated as follows:
sudo gem update rb-appscript
When using the rb-appscript gem, don't forget to require rubygems before requiring appscript, otherwise the appscript gem won't load. For example:
begin; require 'rubygems'; rescue LoadError; end
require 'appscript'
...
Rb-appscript file releases are available via the rb-appscript project page at RubyForge.
To install rb-appscript from source, download and unzip the .zip distribution and follow the instructions in its README file.
Installing rb-appscript from source requires gcc, included in Apple's Developer Tools.
ASDictionary is required to use rb-appscript's built-in help system.
Note: once ASDictionary is installed, you should configure its preferences to use a copy of Ruby that already has rb-appscript installed, otherwise appscript's help system won't work correctly. If you've installed a copy of rb-appscript for OS X's default Ruby installation, the interpreter path should be /usr/bin/ruby. If you've installed rb-appscript on DarwinPorts Ruby, use /opt/local/bin/ruby; and so on.
Rb-appscript's subversion repository can be checked out anonymously with the following command:
svn checkout http://appscript.svn.sourceforge.net/svnroot/appscript/rb-appscript/