So I am testing some of my python scripts with the newest version of Photoshop CC 2014 (version 15 I think?) and I’m having failures with comtypes calls that have worked for ages, specifically:
Here’s the gross part: the scripts don’t even work with Photoshop CS5.1 if Photoshop CC 2014 is installed, which leads me to believe there are some shared libs that are updated that interfere with the comtypes commands.
You may need to be more specific with the CreateObject. “Photoshop.Application”, for example, will grab the most recent version according to the registry. Try:
Yes, one of the least fun things about PS+COM. A fellow named Evan recently posted a comment about that very thing on my PS+COM blog post. He specifically mentions ActionDescriptor.
The version number (12 in your case) doesn’t seem to map directly to the int that the comtypes call expects. Follow my directions and you should have your answer.