# \[Mac OS X\] Ruby as an alternative to Applescript article

**URL:** <https://rubytalk.org/t/mac-os-x-ruby-as-an-alternative-to-applescript-article/35824>\
**Category:** ruby-talk\
**Created:** [3 March 2007 08:50 UTC](https://rubytalk.org/t/mac-os-x-ruby-as-an-alternative-to-applescript-article/35824 "2007-03-03T08:50:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaypee1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@Jaypee1](https://rubytalk.org/u/Jaypee1)\
**Post date:** [3 March 2007 08:50 UTC](https://rubytalk.org/t/mac-os-x-ruby-as-an-alternative-to-applescript-article/35824/1 "2007-03-03T08:50:20Z")

</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:** ![Jaypee1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@Jaypee1](https://rubytalk.org/u/Jaypee1)\
**Post date:** [3 March 2007 10:20 UTC](https://rubytalk.org/t/mac-os-x-ruby-as-an-alternative-to-applescript-article/35824/2 "2007-03-03T10:20:07Z")

</div>

Jaypee a écrit :

> 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

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

J-P

---

<div class="post-metadata">

**Author:** ![has](https://avatars.discourse-cdn.com/v4/letter/h/da6949/32.png) [@has](https://rubytalk.org/u/has)\
**Post date:** [3 March 2007 10:50 UTC](https://rubytalk.org/t/mac-os-x-ruby-as-an-alternative-to-applescript-article/35824/3 "2007-03-03T10:50:06Z")

</div>

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

> **···**
>
> On 3 Mar, 08:49, Jaypee \<rf.ooda...@sd.eepyaj\> 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.
> 
> --  
> [http://appscript.sourceforge.net](http://appscript.sourceforge.net)  
> [http://rb-appscript.rubyforge.org](http://rb-appscript.rubyforge.org)  
> [http://appscript.sourceforge.net/objc-appscript.html](http://appscript.sourceforge.net/objc-appscript.html)
