Women in Technology

Hear us Roar

  Replacing AppleScript with Ruby
Subject:   Xcode integration
Date:   2007-02-28 08:42:41
From:   damonhoxworth
What are the abilities as far as using appscrpt with Xcode?
Am I able to create droplets, or Studio like (standalone) apps with it?

Thanks for the great article.

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Xcode integration
    2007-02-28 11:49:33  hhas [View]

    For building Studio-based applications you need a full OSA language component for that (appscript is just an Apple event bridge), plus a bit of judicious hacking of XCode to make it use Ruby instead of AppleScript.

    There is a RubyOSA language component available at http://homepage.mac.com/philip_aker/osa/osa.html but it provides only limited functionality (load, save, compile and run), so isn't powerful enough for building Studio apps, though you can create Script Editor applets with it. For more advanced projects, I'd second Damon's suggestion of RubyCocoa.

  • Xcode integration
    2007-02-28 09:03:24  damonhoxworth [View]

    Perhaps using RubyCocoa?
    • Xcode integration
      2007-03-01 16:07:06  damonhoxworth [View]

      Or wrap an appscript within an AppleScript using
      do shell script. Convoluted, but just may work.