running ruby 1.8.4 on Win2000, some word scripting
with Office 2003
word = WIN32OLE.new('Word.Application')
doc = word.Documents.Open('c:/foobar.doc')
i want to do a text search and replace
and i need to detect whether the docfile
is already opened by someone else, when
word comes up with a dialog (3 radiobuttons)
similar to that =
Title = bla.doc already in use
o> Open write protected readoonly
o> Open a copy and merge afterwards
o> Tell me when bla.doc is open
I want to check whether the docfile is
already opened, and if yes, i start
to loop until the docfile is free, then
do the replace ...
How do i realize whether the docfile is already opened ??
I searched already in irb via
but didn't come up with a solution
Any hints ?