[python-win32] COM -- Dispatch() parameter

2008-10-21 Thread Ferdinand Sousa
Greetings to everyone on the mailing list, To automate Word using COM, we use the Dispatch function: Dispatch("Word.Application") What parameter must be passed to Dispatch to launch Adobe Acrobat 7.0 Professional? Is it the VersionIndependentProgID registry key? Even so, there are so many things

Re: [python-win32] COM -- Dispatch() parameter

2008-10-21 Thread Michel Claveau
Hi! Launch PythonWin, and use [Tools] "COM Browser" and "COM Makepy" for know the names of COM objects & properties. @-salutations -- Michel Claveau ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/pytho

Re: [python-win32] COM -- Dispatch() parameter

2008-10-21 Thread Tim Roberts
Ferdinand Sousa wrote: > > To automate Word using COM, we use the Dispatch function: > Dispatch("Word.Application") > > What parameter must be passed to Dispatch to launch Adobe Acrobat 7.0 > Professional? > Is it the VersionIndependentProgID registry key? Even so, there are so > many things in the

[python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Jacek Pliszka
Hi! Would it be a problem to add __unicode__ method like this: def __unicode__(self): try: return unicode(self.__call__()) except pythoncom.com_error, details: if details[0] not in ERRORS_BAD_CONTEXT: raise

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
Jacek Pliszka wrote: > Would it be a problem to add __unicode__ method like this: > >def __unicode__(self): >try: >return unicode(self.__call__()) >except pythoncom.com_error, details: >if details[0] not in ERRORS_BAD_CONTEXT: >

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
Jacek Pliszka wrote: > Hi! > > I have something like this: > > wrd=Dispatch("Word.Application") > doc=wrd.Documents.Open('test.doc') > for j in doc.Tables: > s=unicode(j) > ... here I do a few searches on the date inside the table > > How can I do it without the method I mentioned ? I

Re: [python-win32] Feature request: adding unicode method to CDispatch

2008-10-21 Thread Tim Roberts
Tim Roberts wrote: > > You're relying on a bunch of automatic conversions here, some of which > do conversions that you don't want. > > "j" is not a string here -- it is a Table object. The default property > of the Table object is a Range object. The default property of the > Range object is the

[python-win32] Interacting with the desktop as a service on Vista

2008-10-21 Thread Matt Herbert (matherbe)
Hey all, So I have a service that needs to interact with the desktop on a Vista machine. I've read multiple articles about Vista's updated security and it's restrictions on services. So I realize that in order for the service to interact with desktop, I'm going to need to create a new process as

Re: [python-win32] Interacting with the desktop as a service on Vista

2008-10-21 Thread Larry Bates
Matt Herbert (matherbe) wrote: Hey all, So I have a service that needs to interact with the desktop on a Vista machine. I've read multiple articles about Vista's updated security and it's restrictions on services. So I realize that in order for the service to interact with desktop, I'm going to