From: Not Thisguy Date: 2008-06-02T02:25:39+09:00 Subject: Re: Check for Open Application David Mullet wrote: > One option is to try to connect to a running instance of Word. If there > is no running instance of Word, a WIN32OLERuntimeError exception will be > raised. So you could do the following: > > require 'win32ole' > > begin > word = WIN32OLE.connect('Word.Application') > rescue WIN32OLERuntimeError > word = WIN32OLE.new('Word.Application') > word.Visible = true > end > > David > > http://rubyonwindows.blogspot.com > http://rubyonwindows.blogspot.com/search/label/word Awsome thank you so much!! -- Posted via http://www.ruby-forum.com/.