Women in Technology

Hear us Roar

  Replacing AppleScript with Ruby
Subject:   Can't include Appscript
Date:   2007-03-01 07:05:12
From:   mattneub
Response to: Can't include Appscript

Hi, stiang - I don't have a good answer. With RubyGems, you're on your own. Try the installation method I described and see if that works better for you. The article describes the installation method that I was able to get to work. It doesn't talk about methods that I wasn't able to get to work.
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Can't include Appscript
    2007-03-01 07:28:59  stiang [View]

    Thanks, the method you described does indeed work. I just thought I'd check that I wasn't doing something obviously wrong.

    On to the examples!
    • Can't include Appscript
      2007-05-25 17:09:19  devaulw [View]

      The following worked fine with the gem. Rubyforge has more info.

      #!/usr/bin/env ruby
      require 'rubygems'
      rescue LoadError
      require "appscript"
      include Appscript
      puts app('Finder').name.get