Re: [python-win32] Possible future direction for PyGUI on Win32

2011-02-26 Thread Tim Johnson
That sounds very promising. Thanks for pointing this out, too. I hadn't realized this was out there. On Sat, Feb 26, 2011 at 12:31 PM, Greg Ewing wrote: > Until recently I didn't think it was possible to use .NET > libraries from CPython, but then I came across this: > > http://pythonnet.source

[python-win32] New project: py-ad-ldap - Automate AD tasks from any OS.

2011-01-27 Thread Tim Johnson
I won't waste too much of your time pitching this, but I'm passing this on in the hopes that a certain segment of the readers on this list will find it useful, and maybe will want to contribute. I mulled over whether or not to send it to this list because technically it's platform-agnostic, but it

Re: [python-win32] Using Python and WMI for multiple machines

2008-02-19 Thread Tim Johnson
You mean something like this? servers = file('serverfile.txt') for server in servers.readlines(): servername = server.rstrip() MyWmiFunction(servername) On Feb 19, 2008 10:32 PM, Becky Mcquilling <[EMAIL PROTECTED]> wrote: > I'm new to Python and wanted to do what is a pretty routine and

Re: [python-win32] How to get active process list ?

2008-02-15 Thread Tim Johnson
Have you tried using WMI? http://timgolden.me.uk/python/wmi.html import wmi w = wmi.WMI() processes = w.instances('Win32_Process') for process in processes: print process.name On Fri, Feb 15, 2008 at 10:11 AM, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > How do I get the list of activ

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Johnson
There were several bugs there that could possibly have been related, but I submitted it as bug 74669<http://bugs.activestate.com/show_bug.cgi?id=74669> . On Feb 4, 2008 6:07 PM, Tim Johnson <[EMAIL PROTECTED]> wrote: > I'll go ahead and file a bug with ActiveState a

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Johnson
cript host for > some users). The pywin32 distribution registers these objects > automatically. > > > > Mark > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Tim Johnson > *Sent:* Tuesday, 5 February 2008 11:23 AM > *To:* Mark Hammon

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Johnson
be necessary to execute win32com\servers\interp.py to register > the object (which inturn might not work if you installed Python without > admin privs or selected "just for me") > > > > Mark > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behal

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Johnson
8 4:01 PM, Tim Roberts <[EMAIL PROTECTED]> wrote: > Tim Johnson wrote: > > My machine doesn't seem to recognize Python.Interpreter. Is there > > some prerequisite that I could be missing? > > What did you try? I just went into the Excel VBA editor and created a > f

Re: [python-win32] Reading .py or .pyc from an excel sheet

2008-02-04 Thread Tim Johnson
My machine doesn't seem to recognize Python.Interpreter. Is there some prerequisite that I could be missing? On Feb 4, 2008 1:21 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > Pallavi Apotikar wrote: > > I am sorry, instead of "file", I should have said "a python function". > > > > Is it possible t

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-30 Thread Tim Johnson
Oh, and thanks for pointing out the Pythonic style points as well. I'm still a relative newbie to Python, and when I'm reading examples written in vbscripts I sometimes get out of the groove. I'll go take another look at those examples. On Jan 30, 2008 1:39 AM, Tim Johnson &l

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-30 Thread Tim Johnson
he only way to go. Thanks again, and someday I'll pull a thorn out of your foot or something. :) On Jan 30, 2008 1:14 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > Tim Johnson wrote: > > Hmm, I'm getting a different error now. Could it be having trouble > passing > &g

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
esource) rule.ResourceClassName = 'SMS_R_System' coll.AddMembershipRule(rule) Gives me: Traceback (most recent call last): File "C:\Users\timjohnson\Desktop\addrule.py", line 16, in ? coll.AddMembershipRule(rule) TypeError: __call__() takes exactly 1 argument (2 given) On Ja

Re: [python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
> > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Tim Johnson > *Sent:* Wednesday, 30 January 2008 11:18 AM > *To:* python-win32@python.org > *Subject:* [python-win32] "Property '%s.%s' can not be set" on read/write > at

[python-win32] "Property '%s.%s' can not be set" on read/write attribute

2008-01-29 Thread Tim Johnson
So I'm trying to automate some tasks with SMS, and I've run into a roadblock when creating new collection membership rules. The code below is a method of a Collection object. It's a rough draft, so don't worry too much about the top half unless you think it might be screwing something up. My pro

Re: [python-win32] AttributeError: 'NoneType' object has no attribute 'PageSetup'

2008-01-10 Thread Tim Johnson
I can't test this right now, but just looking at the code it would appear that wordapp.Documents.Add() is returning None instead of a word document object. Take out the close and quit lines and run it with python -i or type it in interactively and then you can do a dir() on the worddoc object and

Re: [python-win32] %TEMP% directory

2008-01-08 Thread Tim Johnson
Actually I that's the normal behavior. The TEMP environment variable is loaded by your user profile, but %TEMP% points to %WINDIR%\TEMP by default if it isn't set explicitly. You can test this by running 'runas /noprofile /user:some_user cmd', %TEMP% will point to %WINDIR%\TEMP. Whatever script