Hi,
I was trying to open a url through ruby script in firefox browser.
The below code opens the link in the background in Internet Explorer.
Is there a way to open it in Firefox and in foreground ?
require 'open-uri'
require 'uri'
open("http://mail.yahoo.com")
Thanks in advance,
Raju
···
--
Posted via http://www.ruby-forum.com/.
Hi,
I was trying to open a url through ruby script in firefox browser.
The below code opens the link in the background in Internet Explorer.
No it doesn't.
Is there a way to open it in Firefox and in foreground ?
Take a look at Launchy: http://copiousfreetime.rubyforge.org/launchy/
···
On Thu, Dec 11, 2008 at 3:20 PM, Raju Alluri <avr_1@yahoo.com> wrote:
--
Avdi
Home: http://avdi.org
Developer Blog: Avdi Grimm, Code Cleric
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com
Avdi Grimm wrote:
Hi,
I was trying to open a url through ruby script in firefox browser.
The below code opens the link in the background in Internet Explorer.
No it doesn't.
Is there a way to open it in Firefox and in foreground ?
Take a look at Launchy: http://copiousfreetime.rubyforge.org/launchy/
--
Avdi
Home: http://avdi.org
Developer Blog: Avdi Grimm, Code Cleric
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com
Hi Advi,
Thanks for your response.
What do you mean by it doesnt ? It is actually opening a browser in the
background. I know this as i was monitoring logs when i open particular
links.
The other point on Launchy. can you please eloborate, I dont see any
library file Launcy in lib folder.
-Raju
···
On Thu, Dec 11, 2008 at 3:20 PM, Raju Alluri <avr_1@yahoo.com> wrote:
--
Posted via http://www.ruby-forum.com/\.
Thanks for your response.
What do you mean by it doesnt ? It is actually opening a browser in the
background. I know this as i was monitoring logs when i open particular
links.
OpenURI opens network connections inside Ruby, it doesn't interact
with your desktop at all. See the documentation:
http://ruby-doc.org/stdlib/libdoc/open-uri/rdoc/classes/OpenURI.html
Anything opening in Internet Explorer at the same time is a coincidence.
The other point on Launchy. can you please eloborate, I dont see any
library file Launcy in lib folder.
It's a Ruby gem that you must install with the command:
gem install launchy
···
On Thu, Dec 11, 2008 at 3:41 PM, Raju Alluri <avr_1@yahoo.com> wrote:
--
Avdi
Home: http://avdi.org
Developer Blog: Avdi Grimm, Code Cleric
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com