Python COM ports and CC 19.0
I have program written with Python 2 that runs externally, which tells Photoshop to save out .dds files. In previous versions of PS this would work fine, but since the 19 update the process often gets interrupted at various stages. Sometimes the export can run to completion, other times it stops and I get an error log message like:
Traceback (most recent call last):
File "main.py", line 690, in clicked_export
File "exporter.pyc", line 212, in export
File "comtypes\client\lazybind.pyc", line 168, in __getattr__
File "comtypes\automation.pyc", line 729, in _invoke
_ctypes.COMError: (-2147417846, 'The message filter indicated that the application is busy.', (None, None, None, 0, None))
Edit: It seems like I might be able to get around this actually by implementing sleep, but I have had to put this in three different locations so far and it's kinda like playing Whack-A-Mole because the error can show up anywhere depending on when Photoshop feels like being "busy".
SAVING = True
while SAVING:
try:
self.save_as_dds(file_path, group)
SAVING = False
except comtypes.COMError as e:
print e
time.sleep(0.5)
