| Article: |
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. | ||
Showing messages 1 through 2 of 2.
-
Can't include Appscript
2007-03-01 07:28:59 stiang [View]
-
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



On to the examples!