# RubyOSA 0.4.0

**URL:** <https://www.ruby-forum.com/t/rubyosa-0-4-0/91735>\
**Category:** Ruby\
**Created:** [April 11, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/rubyosa-0-4-0/91735 "2007-04-11T23:36:52Z")\
**Posts on this page:** 1\
**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:** [April 11, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/rubyosa-0-4-0/91735/1 "2007-04-11T23:36:52Z")

</div>

Hi rubyists,

I am honored to announce the immediate availability of RubyOSA 0.4.0.

RubyOSA is a bridge that connects Ruby to the Apple Event Manager  
infrastructure. It allows Ruby programs to automate Mac OS X  
applications in the same way as AppleScript.

More information on the project home page:

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

The project home page has been completely revamped and the guide has  
been improved.

This new release fixes some important issues, enhances the existing  
features set and provides some new samples.

The complete release notes are following.

Enjoy,  
Laurent

\<\<\<  
Features:

- Added the possibility to retrieve from an object specifier list object  
the  
values of a given attribute, via the ‘every’ method ;
- Examples: iTunes/tag\_genre\_lastfm.rb (new revision that queries  
Last.fm only  
once per artist), iTunes/name\_that\_tune.rb, Photoshop/new\_doc.rb,  
Photoshop/new\_doc\_with\_text.rb ;
- The rdoc-osa tool now supports scripting additions (via the  
‘–addition’  
argument) ;
- Added conversion support for color types ;
- Allow multiple enum values to be passed into the same argument  
(packing them  
in an array) ;
- Merge an ‘activate’ method into application objects.

Bugfixes:

- Fixed the rdoc-osa tool for applications that do not have a name  
command ;
- Fixed ‘msng’ type conversions ;
- Do not fail if a description attribute has an empty value ;
- Do not fail if a class inherits from a class that hasn’t been defined  
yet ;
- When converting an Hash object to OSA, property convert Array values ;
- Convert type-less Float objects to OSA ;
- Added the :size attribute as a shortcut to :point\_size ;
- Fixed the rdoc-osa tool to work when RubyGems isn’t available in the  
machine ;
- Make sure to include a ‘subj’ attribute to apple events without direct  
parameters.
