| Sign In/My Account | View Cart |
| 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.
|
||
Showing messages 1 through 1 of 1.
#!/usr/bin/env ruby
begin
require 'rubygems'
rescue LoadError
end
require "appscript"
include Appscript
puts app('Finder').name.get