[python-win32] COM Photoshop - Exception occurred

Tim Roberts timr at probo.com
Sun Mar 10 00:43:05 EST 2019


On Mar 8, 2019, at 9:08 AM, Ioannis Valasakis <code at wizofe.uk> wrote:
> 
> ...
> Currently, that this is the error I am getting and I can't seem to understand why, as I've seen online examples using the exact same code and it works.
> 
> >>> desc.putReference(cTID("null"), ref) 
> >>> desc.putBoolean(cTID("MkVs"), False)
> >>> app.executeAction(cTID("slct"), desc, 3)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 516, in __getattr__
>     ret = self._oleobj_.Invoke(retEntry.dispid,0,invoke_type,1)
> pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, u'Adobe Photoshop', u'Illegal argument - argument 1\n- Required value is missing', None, 0, -2147220262), None)

Different versions of Photoshop?  Could the “slct” action refer to a plugin that isn’t present on your Windows 10 system?

The key point is that this is almost certainly going to end up being a Photoshop issue, not a Python issue.
— 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190309/5294e407/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3870 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190309/5294e407/attachment.bin>


More information about the python-win32 mailing list