On Jul 14, 2007, at 10:51 , 12 34 wrote:

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

ruby is case sensitive, so is applescript. You probably also want 0,  
not 1.

 >> Appscript.app('Safari').documents[0].URL.get
# really annoying warnings removed... why don't more people develop  
with -w??
=> "http://pastie.caboo.se/78854"