[Tutor] win32com and python

Tim Golden mail at timgolden.me.uk
Tue Apr 19 17:51:01 CEST 2011


On 19/04/2011 15:53, Pierre Barthelemy wrote:
> The problem i have is that, often, while the script is running, the
> powerpoint file would already be open. In this case, my script would
> open it anew, and make the modifications in the newly opened file.
> To prevent that problem, i need to be able to look at the filenames of
> the open powerpoint files.
> It there a way to do that ?

See if this might help (mutatis mutandis):

http://timgolden.me.uk/python/win32_how_do_i/see-if-an-excel-workbook-is-open.html

TJG


More information about the Tutor mailing list