How do I open a browser window (Safari) with Ruby on a Mac and pass it a url?
i mean so it actually opens the browser window visibly, not just so I can read the response data.
viatropos
2010-03-28 17:15:11
Did you try it? With the ``backticks``? It does exactly what you're after :)
Gareth
2010-03-28 18:02:59
@viatropos, I tested this and it works. Make sure you incude include the `\`` characters.
macek
2010-03-28 21:10:55
oops, tried it without the backticks. it works :). thanks!
viatropos
2010-03-29 00:57:56
+1
A:
Basically the same as Peter's answer, just more explicit.
system("open -a Safari #{url}")
Michael Kohl
2010-03-28 18:08:03