npm install photoshop-connection --save
Node.js module for connecting to Adobe Photoshop Server. Based on the connection libraries of Adobe Generator.
const photoshopConnection = require('photoshop-connection')
let options = {
hostname: '127.0.0.1',
password: 'password',
port: 49494
}
photoshopConnection.createClient(options)
.then((photoshopClient) => {
photoshopClient.sendCommand(`alert('Hello from ExtendScript!');`)
})
.catch((err) => {
console.log(`Connection Error: ${err}`)
})
Example Project demostrating module basic functionality.
The module creates a new client instance, once a connection is established, it sends a basic command as String to be evaluated on Adobe Photoshop.
Tested in Adobe Photoshop CC2014 (v15.x), Adobe Photoshop CC2015 (v16.x), Adobe Photoshop CC2015.5 (v17.x), Adobe Photoshop CC2017 (v18.x)
1.0.0 (Nov 29 2016)
- Create a connection client based on the provided options.
- Send commands to Photoshop based on a JSX String.
- Catch any connections errors.
0.0.0 (Nov 27 2016)
- Initial development.
MIT © Antonio Gomez