Women in Technology

Hear us Roar



Article:
  Replacing AppleScript with Ruby
Subject:   Clarification on python
Date:   2007-02-28 07:19:26
From:   sinjin
Eye-opening article, thanks.


I'm wondering if what you discussed applies to python with appscript as well. I.e. Am I best sticking with python since I already know it, or does Ruby bring advantages to appscript that are worth my while (as a very occassional scripter).


Thanks again, Mark

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Clarification on python
    2007-02-28 11:40:58  hhas [View]

    I'd say just go with whichever language you find most comfortable. Both appscripts provide the same level of functionality, and the APIs are pretty much identical modulo the variations needed to accomodate the different languages' strengths and weaknesses (e.g. Python has better keyword argument support, Ruby has a proper Symbol class).

    Python appscript has a few nice add-ons, in particular its built-in help() method, which I've still to implement in rb-appscript. However, you can already get most of the same functionality via the osadict tool which is bundled with py-appscript and provides support for Python, Ruby and AppleScript, with more languages planned.

    HTH