Copy link to clipboard
Copied
Hi guys,
I am new to scripting for Photoshop. I am using Javascript.
How do I write code in Javascript to open a file (e.g. a jpeg) in Photoshop? And how do I write code to save it as e.g. a PSD, EPS etc?
Will really appreciate the help.
Thanks.
Copy link to clipboard
Copied
It depends on whether you want to use Document Object Model- or Action Manager-code.
This pdf should cover the DOM-methods (for document in the case of saving as, for application in the case of opening a file).
photoshop-javascript-ref-2020.pdfGitHubhttps://github.com › blob › master › Documentation
Copy link to clipboard
Copied
Thanks alot! Let me try it out.
Copy link to clipboard
Copied
@Joseph25509234xr72 – When first startng scripting (and even today), I often struggled with the official docs, I found them useful to dissect example code, but had major issues using them to write code from scratch.
Searching this forum for keywords such as:
or
Copy link to clipboard
Copied
I have really been struggling with this. The official docs usually just give the format, but not many practical examples.
I got frustrated to the point I decided to just post here in the community for help.
Thanks alot