Re: [python-win32] Fw: Python COM and Photoshop

2007-05-08 Thread Sam The Cat
As a follow-up question is there a way to see what python thinks the variable should be ? In looking at the file created by makepy I see the function call for select but nothing that looks to me like information relating to the type of variable that needs to be generated here is the method in

Re: [python-win32] Fw: Python COM and Photoshop

2007-05-08 Thread Sam The Cat
Mark, My apologies -- I tried to relay that I have tried both ways -- "early and late dispatch" Here is the output after running the makepy routine on the type and object libraries for Photoshop --- 2.5.1 (r251:548

Re: [python-win32] Fw: Python COM and Photoshop

2007-05-07 Thread Mark Hammond
> > F:\automation>test2.py > > [(1, 1), (1, 2), (2, 2), (2, 1)] > > Traceback (most recent call last): > > File "F:\automation\test2.py", line 19, in ? > > doc.Selection.Select(selregion,1,0,0) > > File ">", line 3, in Select > > pywintypes.com_error: (-2147352567, 'Exception occurred.', >

[python-win32] Fw: Python COM and Photoshop

2007-05-07 Thread Sam The Cat
I thought I'd try this again -- still no progress on my debugging. From using Visual Basic it seems that the interface is expecting an array of type varint where each element of the array is another array. The inner arrays are two elements long (an x and y data point) I have also tried using