Should be simple:

require 'rubygems'
require 'appscript'
include Appscript
urlFront = app('Safari').documents[1].url.get
puts urlFront

but doesn't work. In place of documents, I've tried window(s) too.

Thanks

-- 
Posted via http://www.ruby-forum.com/.