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: xbytor, DavideBarranca, Paul MR

Post Reply
Jason407
Posts: 1
Joined: Thu Sep 19, 2019 12:56 pm

Passing active document to JavaScript?

Post by Jason407 » Mon Sep 23, 2019 5:52 pm

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!

Post Reply