Re: [python-win32] Python COM and Photoshop

2007-05-07 Thread Sam The Cat
One more thought -- I have tried both Early and Late binding COM calls and I get the same error message either way. 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

Re: [python-win32] Python COM and Photoshop

2007-05-01 Thread Francesco Guerrieri
I am a complete beginner myself with python and win so surely there are better ways of doing this. In any case, here's my try. You could try to go in the reverse manner: instead of trying to guess the right way from python to VB, define an Array object in VB and pass it to python, dispatch it

Re: [python-win32] Python COM and Photoshop

2007-05-01 Thread Jim Vickroy
Sam The Cat wrote: Help ! I am writing some COM code in Python to control photoshop. Several functions of PS require an Array argument. In the examples of VBscript or javascript the Array type is used. I have tried what would appear to be the equivalent in Python -- Lists and Tuples --

[python-win32] Python COM and Photoshop

2007-04-30 Thread Sam The Cat
Help ! I am writing some COM code in Python to control photoshop. Several functions of PS require an Array argument. In the examples of VBscript or javascript the Array type is used. I have tried what would appear to be the equivalent in Python -- Lists and Tuples -- but to no avail. Anyone