# Ruby as an alternative to Applescript article

**URL:** <https://www.ruby-forum.com/t/ruby-as-an-alternative-to-applescript-article/87518>\
**Category:** Ruby\
**Created:** [March 3, 2007, 9:51am UTC](https://www.ruby-forum.com/t/ruby-as-an-alternative-to-applescript-article/87518 "2007-03-03T09:51:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaypee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jaypee](https://www.ruby-forum.com/u/jaypee)\
**Post date:** [March 3, 2007, 9:51am UTC](https://www.ruby-forum.com/t/ruby-as-an-alternative-to-applescript-article/87518/1 "2007-03-03T09:51:23Z")

</div>

Hi,

There is an article on O’Reilly’s MacDevCenter about rb-appscript  
a way to use Ruby as a front-end to interact via AppleEvents with  
applications.  
There is a dmg to install everything. It’s a pprt from Python so  
the examples are in Python syntax.

However, the only example Ruby does not work.

Anyone has tried it yet?  
J-P

---

<div class="post-metadata">

**Author:** ![jaypee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jaypee](https://www.ruby-forum.com/u/jaypee)\
**Post date:** [March 3, 2007, 11:20am UTC](https://www.ruby-forum.com/t/ruby-as-an-alternative-to-applescript-article/87518/2 "2007-03-03T11:20:30Z")

</div>

Jaypee a écrit :

> Anyone has tried it yet?  
> J-P

Sorry, I forgot an essential include (include Appscript). With  
that the example works fine.

J-P

---

<div class="post-metadata">

**Author:** ![jaypee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f6c823/32.png) [@jaypee](https://www.ruby-forum.com/u/jaypee)\
**Post date:** [March 3, 2007, 11:50am UTC](https://www.ruby-forum.com/t/ruby-as-an-alternative-to-applescript-article/87518/3 "2007-03-03T11:50:31Z")

</div>

On 3 Mar, 08:49, Jaypee [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> There is an article on O’Reilly’s MacDevCenter about rb-appscript  
> a way to use Ruby as a front-end to interact via AppleEvents with  
> applications.  
> There is a dmg to install everything. It’s a pprt from Python so  
> the examples are in Python syntax.
> 
> However, the only example Ruby does not work.

You’re referring to the .dmg at \<[http://rubyforge.org/frs/](http://rubyforge.org/frs/)?  
group\_id=2346&release\_id=9094\>, yes? That .dmg should include the  
following:

- ‘README’ file
- binary PPC and i386 .pkg installers for Apple-installed Ruby on  
Tiger
- an ‘rb-appscript-0.3.0’ folder containing the full source  
distribution, including full documentation (the ‘doc’ sub-folder) and  
over a dozen sample Ruby scripts (the ‘sample’ sub-folder).

While rb-appscript is a port of the original Python appscript, there  
shouldn’t be any Pythonisms left in rb-appscript or on its website. If  
I’ve missed any, please let me know exactly where and I’ll go fix 'em  
ASAP.

HTH

has
