Closed Investigamer closed 8 months ago
application.py
app.colorSettings
setter call with human readable exceptionapp.load()
to receive str or Pathapp.purge()
docstring to match definitions in PurgeTarget@cached_property
wasn't implemented until 3.8. I went ahead and removed Python 3.7 from our workflows and project files, let me know if you prefer to try and maintain support for 3.7 and I will reverse this change and find a replacement for my @cached_property
solution. 👍 importlib_metadata
.
Motivation for this Commit
After the popularity of Photoshop Beta due to the Generative Fill feature, as well as the Photoshop version rollover from v24 to v25, there has been increased occurrence of strange issues such as:
Dispatch
object, despite Photoshop being installedDispatch
objects that conflict with one another, likely due to a version conflict i.e. having two versions of Photoshop installed, or having lingering registry data from an uninstalled version of Photoshop.Goals of this Commit
Dispatch
object inPhotoshop.__init__()
, ensuring the sequence is optimized. My current solution:Dispatch
object using this version.Dispatch
object, with the last attempt being an empty version (e.g.Photoshop.Application
).Dispatch
object fail, raise aPhotoshopPythonAPIError
.Note on Limitations
These changes surely don't address every
Dispatch
related issue we've seen, and unfortunately I cannot replicate many of these reported issues on a local system, so its impossible for me to test each scenario. Nevertheless, I put in a few days of deep dive research into the topic, and I'm confident my proposed methodology is a step in the right direction.