# RubyOSA 0.2.0

**URL:** <https://www.ruby-forum.com/t/rubyosa-0-2-0/80958>\
**Category:** Ruby\
**Created:** [January 2, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/rubyosa-0-2-0/80958 "2007-01-02T16:29:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/65b543/32.png) [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Post date:** [January 2, 2007, 4:29pm UTC](https://www.ruby-forum.com/t/rubyosa-0-2-0/80958/1 "2007-01-02T16:29:58Z")

</div>

Hi,

I’m pleased to announce the second public release of RubyOSA, 0.2.0.

RubyOSA is a bridge that connects Ruby to the Apple Event Manager  
infrastructure. In big words, it allows you to do in Ruby what you  
could do in AppleScript.

It can either be installed via RubyGems (gem install rubyosa), or  
manually by building the sources.

More information on the project home page (including a more deeply  
project description, samples etc…):

[http://rubyosa.rubyforge.org/](http://rubyosa.rubyforge.org/)

RubyOSA is still under heavy development, however you might already  
find it useful.

Following are the release notes. Enjoy!

Laurent

Features:

- Added support for some picture types ;
- Possible to use UTF-8 strings (if OSA.utf8\_strings is set to true) ;
- Added new samples: Finder\_show\_desktop, BBEdit\_unix\_script,  
iTunes\_artwork  
and iChat\_images ;
- Translate file paths, Hashes, floating types and missing types.

Bugfixes:

- Handle application errors and convert them as Ruby exceptions ;
- Added ‘class’ to the list of reserved Ruby keywords to prefix when  
generating  
method parameters ;
- Suffix method names that are already registered with an integer value  
instead of prefixing with ‘osa\_’ as there might be more than 2  
duplicates ;
- Register the ID property if not already defined ;
- Fixed conversion handlers to not use ‘self’ ;
- Make sure to swap the data of ‘type’ coerced descriptors ;
- Convert four char codes to the Mac Roman encoding before using them,  
as otherwise they could be considered as more-than-4-bytes strings ;
- Remove invalid characters when generating constants ;
- Changed the “require ‘rubygems’…” expressions to make them  
compatible with  
Ruby 1.8.2 ;
- Try to require ‘rubygems’ in samples, as RubyOSA may have been  
installed as a gem ;
- Fixed generated code for methods taking an enumeration-like parameter.

---

<div class="post-metadata">

**Author:** ![Laurent\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/65b543/32.png) [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Post date:** [January 2, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/rubyosa-0-2-0/80958/2 "2007-01-02T17:04:06Z")

</div>

On Jan 2, 2007, at 10:28 AM, Laurent S. wrote:

> Hi,
> 
> I’m pleased to announce the second public release of RubyOSA, 0.2.0.

_applauds_

Thanks for this. I’m not sure what I’ll use it for just yet, but it  
just oozes usefulness 🙂  
-Mat
