0

Does anyone know how to run a pre-defined action in Photoshop using Python?

from comtypes.client import GetActiveObject

app = GetActiveObject("Photoshop.Application")
fileName = path
docRef = app.Open(fileName)

app.ExecuteAction("Script_Name") #not sure how to write it

1 Answer 1

1

app.ExecuteAction() is a different beast — it's for executing ActionManager scrings. What you need is app.DoAction('action_name', 'set_name')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.