Women in Technology

Hear us Roar



Article:
  Replacing AppleScript with Ruby
Subject:   Can't include Appscript
Date:   2007-03-01 07:28:59
From:   stiang
Response to: Can't include Appscript

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!

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • 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
    begin
    require 'rubygems'
    rescue LoadError
    end
    require "appscript"
    include Appscript
    puts app('Finder').name.get