# Check non internet applications

**URL:** <https://www.ruby-forum.com/t/check-non-internet-applications/125453>\
**Category:** Ruby\
**Created:** [January 9, 2008, 7:45am UTC](https://www.ruby-forum.com/t/check-non-internet-applications/125453 "2008-01-09T07:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flamingflamingo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f14d63/32.png) [@flamingflamingo](https://www.ruby-forum.com/u/flamingflamingo)\
**Post date:** [January 9, 2008, 7:45am UTC](https://www.ruby-forum.com/t/check-non-internet-applications/125453/1 "2008-01-09T07:45:46Z")

</div>

Hi,  
Has anyone experience with non internet applications?  
I would like to check if Word is active and if so, close it.

A test Iâ€™m making opens a file (pdf, doc, etc), has to checks if it  
opens correct and then close it.

Any pointers are welcome!

Cheers,  
Flaming F.

---

<div class="post-metadata">

**Author:** ![flamingflamingo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f14d63/32.png) [@flamingflamingo](https://www.ruby-forum.com/u/flamingflamingo)\
**Post date:** [January 9, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/check-non-internet-applications/125453/2 "2008-01-09T13:10:29Z")

</div>

On Jan 9, 2008 6:45 AM, Flaming F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> Has anyone experience with non internet applications?  
> I would like to check if Word is active and if so, close it.
> 
> A test I’m making opens a file (pdf, doc, etc), has to checks if it  
> opens correct and then close it.

Theres lots of good stuff on Ruby on Windows  
([http://rubyonwindows.blogspot.com](http://rubyonwindows.blogspot.com)) . Its  
certainly possible to open word docs and program against them with  
their OLE interface.  
PDF requires different (cross platform) APIs.

Its pretty fun to open a word doc in IRB and start navigating around  
it. I haven’t done much in  
the way of exception handling though with OLE (because I don’t really  
know the API), but  
I get the impression that it will fail fast, and fail appropriately  
for your tests.
