lohriialo / photoshop-scripting-python

Scripting in Photoshop is used to automate a wide variety of repetitive task or as complex as an entire new feature
481 stars 95 forks source link

mac scripting no longer working / supported #15

Open dsldsl opened 2 years ago

dsldsl commented 2 years ago

appscript is no longer actively developed / supported and doesn't seem to work in the newest mac OS.

image

oh-ok commented 1 year ago

Mac scripting is still supported, it's just that the default way appscript get's the terminology (via an AETE event) is deprecated and no longer supported in recent Photoshop versions. You just need to specify terms="sdef" as a parameter when you create the Photoshop instance in Python like so:

from appscript import app
ps = app(id="com.adobe.Photoshop", terms="sdef")
ps.current_document

(I'm using id= here, you can still use name or path)

Edit: After just double checking, the "open" function error seems to have been fixed.