[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Jaypee

3/3/2007 8:50:00 AM

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

2 Answers

Jaypee

3/3/2007 10:19:00 AM

0

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

hengist podd

3/3/2007 10:47:00 AM

0

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.

You're referring to the .dmg at <http://rubyforge...
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
--
http://appscript.sourc...
http://rb-appscript.rub...
http://appscript.sourc.../objc-appscript.html