Copy link to clipboard
Copied
I am creating an HTML extension panel photoshop which has a <label> on the panel.
Is it possible to get the label to display the Document profile of the open document by using
app.activeDocument.colorProfileName
Copy link to clipboard
Copied
Hi ian-barber​
Your document is already saved?
A color profile is already embedded?
I don't know how the solution for an HTML extension panel is. But in [JS] you can do something like this:
try{
var profile = app.activeDocument.colorProfileName;
} catch(e) {
var profile = "not embedded";
}
alert(profile);
Have fun
Copy link to clipboard
Copied
This is a great resource that shows how to get data from JSX and send it to your HTML panel. The author of that website also has a great HTML panels book that you should look into if you're thinking of investing a lot more time on panels.
HTML Panels Tips: #3 Get data from JSX and send it to HTML | Photoshop, etc.
You can use pixxxel schubser​'s function above to get the color profile data you need. You need the try / catch because if you don't have a color profile assigned / embedded, Photoshop will send and error.