# File download script in ruby

**URL:** <https://www.ruby-forum.com/t/file-download-script-in-ruby/65776>\
**Category:** Ruby\
**Created:** [August 21, 2006, 11:10am UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776 "2006-08-21T11:10:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![delia-deea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@delia-deea](https://www.ruby-forum.com/u/delia-deea)\
**Post date:** [August 21, 2006, 11:10am UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776/1 "2006-08-21T11:10:12Z")

</div>

Hi!

Does anyone know if/how could a file download be automised with ruby?

thanks,  
Delia

---

<div class="post-metadata">

**Author:** ![delia-deea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@delia-deea](https://www.ruby-forum.com/u/delia-deea)\
**Post date:** [August 21, 2006, 11:40am UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776/2 "2006-08-21T11:40:46Z")

</div>

Delia D. wrote:

> Hi!
> 
> Does anyone know if/how could a file download be automised with ruby?

Please provide more detail. Do you mean downloading across a local  
network,  
or from the Internet? What time intervals? What file size? What  
protocol?  
By “automised,” do you mean automated?

Chances are the answer is that this can be done easily. But without  
details,  
any reply is too vague to be useful.

---

<div class="post-metadata">

**Author:** ![delia-deea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@delia-deea](https://www.ruby-forum.com/u/delia-deea)\
**Post date:** [August 21, 2006, 11:46am UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776/3 "2006-08-21T11:46:15Z")

</div>

Hi!

I’m trying to write a ruby script that tests a “print to pdf”  
functionality…so, I have a list on my screen, and by pressing the  
Print button, a PDF is generated…a file download window  
appears…could I click Save on that window from Ruby?

Thanks

Paul L. wrote:

> Delia D. wrote:
> 
> > Hi!
> > 
> > Does anyone know if/how could a file download be automised with ruby?
> 
> Please provide more detail. Do you mean downloading across a local  
> network,  
> or from the Internet? What time intervals? What file size? What  
> protocol?  
> By “automised,” do you mean automated?
> 
> Chances are the answer is that this can be done easily. But without  
> details,  
> any reply is too vague to be useful.

---

<div class="post-metadata">

**Author:** ![delia-deea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@delia-deea](https://www.ruby-forum.com/u/delia-deea)\
**Post date:** [August 21, 2006, 1:41pm UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776/4 "2006-08-21T13:41:11Z")

</div>

On 8/21/06, Delia D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi!
> 
> I’m trying to write a ruby script that tests a “print to pdf”  
> functionality…so, I have a list on my screen, and by pressing the  
> Print button, a PDF is generated…a file download window  
> appears…could I click Save on that window from Ruby?

That seems more like a case for autoit  
([AutoIt Downloads - AutoIt](http://www.hiddensoft.com/autoit3/downloads.php))  
Eventually you can use autoit from ruby via autoitX dll and win32api or  
ruby/dl.

J.

---

<div class="post-metadata">

**Author:** ![delia-deea](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b782af/32.png) [@delia-deea](https://www.ruby-forum.com/u/delia-deea)\
**Post date:** [August 23, 2006, 8:46am UTC](https://www.ruby-forum.com/t/file-download-script-in-ruby/65776/5 "2006-08-23T08:46:47Z")

</div>

On 2006-08-21 11:46:19 +0200, Delia D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) said:

> > Delia D. wrote:  
> > any reply is too vague to be useful.  
> > It should be a client browser functionality… display -pdf then save  
> > or print it

something like this plugin ? [http://www.schubert-it.com/](http://www.schubert-it.com/)  
I installed it into my Safari browser (yes I’m Mac…) and that’s it…  
look if any similar plugin exist for other browsers…
