photoshop-scripting-python icon indicating copy to clipboard operation
photoshop-scripting-python copied to clipboard

mac scripting no longer working / supported

Open dsldsl opened this issue 3 years ago • 1 comments

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

image

dsldsl avatar Aug 24 '21 05:08 dsldsl

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.

oh-ok avatar Jul 08 '23 20:07 oh-ok