# Need a Help to save a file

**URL:** <https://rubytalk.org/t/need-a-help-to-save-a-file/68771>\
**Category:** ruby-talk\
**Created:** [20 November 2013 06:50 UTC](https://rubytalk.org/t/need-a-help-to-save-a-file/68771 "2013-11-20T06:50:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [20 November 2013 06:50 UTC](https://rubytalk.org/t/need-a-help-to-save-a-file/68771/1 "2013-11-20T06:50:34Z")

</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?  
It has 3 options:  
1. Open  
2. Save  
3. Cancel

Thanks.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
