Passing active document to JavaScript?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

Posts: 2
Joined: Thu Sep 19, 2019 12:56 pm

Passing active document to JavaScript?

Post by Jason407 »

When working with panels and using JavaScript to do some processing on an image, I can access the current file via its path. However, is there a way to actually send the current state of the document into JavaScript? I guess I could save a temp file and access that, but was wondering if there was a better way. Thanks!