[python-win32] COM Photoshop - Exception occurred
Ioannis Valasakis
code at wizofe.uk
Fri Mar 8 12:08:46 EST 2019
Hi all,
I am following the above tutorial for interfacing Python with Photoshop on Windows.
https://evanmccall.wordpress.com/2015/03/09/how-to-develop-photoshop-tools-in-python/#comments
I am using the following version of Python 2.7.16 (v2.7.16:413a49145e) [MSC v.1500 64 bit (AMD64)].
I had different kind of errors even with simple actions like app.Save(file, psd_opt) but I got rid of them when I installed Python 2.7.16 on Windows 10. The previous errors were coming from Python 2.7.15 on Windows 7.
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)
Thank you for the help
i
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20190308/7aef7c1c/attachment.html>
More information about the python-win32
mailing list