How to access a COM object from a python file using python 3.0.
And, yes, I know that not a lot of people are using Python 3.0. Switching back to 2.6 is a huge hassle for me, so I don't want to unless I absolutely have to.
I appreciate your time, and any assistance!
Install pywin32 and then create the object using it's progid:
import win32com.client
object = win32com.client.Dispatch("Outlook.Application")
See also the Python and COM tutorial.
EDIT: Hmm... looks like they may not have a python 3.0 version yet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With