Had another quick look at trying to get python to control photoshop earlier on today but the beast was having none of it. I’ve used the gencache method which seemed as if it was the route forward but no success and I cant see a way of getting it to work.
Documentation on the web is rather scarce or non existent would be a better means of describing it.
Here’s what I’ve goten working (only starting the application – nothing ground breaking then !!!)
import os.path from numpy import * from scipy import * from math import * from random import * from re import * from string import * import win32com.client import win32com.client.dynamic #Ex = win32com.client.dynamic.Dispatch("Excel.Application") from win32com.client import gencache gencache.EnsureModule('{E891EE9A-D0AE-4cb4-8871-F92C0109F18E}', 0, 9, 0) cs = win32com.client.Dispatch("Photoshop.Application") print cs.ActiveDocument.Name saveMe = cs.ActiveDocument startRulerUnits = cs.Preferences.RulerUnits startTypeUnits = cs.Preferences.TypeUnits startDisplayDialogs = cs.DisplayDialogs