• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Display Document Profile

Participant ,
Nov 07, 2016 Nov 07, 2016

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

TOPICS
Actions and scripting

Views

430

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Nov 07, 2016 Nov 07, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 07, 2016 Nov 07, 2016

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines