photoshop-connection

Python package for Photoshop Connection.


Keywords
extendscript, photoshop, python
License
MIT
Install
pip install photoshop-connection==0.1.2

Documentation

Photoshop connection

Python package to remotely execute ExtendScript in Adobe Photoshop.

Build Documentation Status PyPI

Prerequisites

Photoshop must be configured to accept remote connection.

Open the plug-ins dialog from the Preferences > Plug-ins... menu in Photoshop, and check Enable Remote Connections option. Enter password to the given field, and click OK button and restart Photoshop.

Photoshop must be launched and running for the package to work.

Install

pip install photoshop-connection

Usage

Example:

from photoshop import PhotoshopConnection

with PhotoshopConnection(password='secret') as conn:
    conn.execute('alert("hello")')
    jpeg_binary = conn.get_document_thumbnail()

Check out documentation for details.