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

Set Customize Proof Condition

Contributor ,
May 06, 2016 May 06, 2016

Hi,

     I need to set the below options from menu item dialog settings (View -> Proof Setup -> Customize).  How can I do this??

     I need to change the value of text in the dropdown menu of Device to Simulate and also checkbox...

Screen shot 2016-05-06 at 1.15.28 PM.png

TOPICS
Scripting
1.4K
Translate
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

correct answers 1 Correct answer

Guide , May 06, 2016 May 06, 2016

together:

with (app.layoutWindows[0]) {

proofingType = ProofingType.CUSTOM;

proofingProfile = "Display";  //change as your wish

preserveColorNumbers = true; //change as your wish

simulatePaperWhite=true; //change as your wish

simulateInkBlack =true; //change as your wish

}

hope it helps

Translate
Guide ,
May 06, 2016 May 06, 2016

app.activeDocument.layoutWindows[0].simulatePaperWhite=true;

app.activeDocument.layoutWindows[0].simulateInkBlack =true  

Translate
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
Guide ,
May 06, 2016 May 06, 2016

with (app.layoutWindows[0]) {

proofingType = ProofingType.CUSTOM;

proofingProfile = "Display"; 

preserveColorNumbers = false;

}

Translate
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
Guide ,
May 06, 2016 May 06, 2016

together:

with (app.layoutWindows[0]) {

proofingType = ProofingType.CUSTOM;

proofingProfile = "Display";  //change as your wish

preserveColorNumbers = true; //change as your wish

simulatePaperWhite=true; //change as your wish

simulateInkBlack =true; //change as your wish

}

hope it helps

Translate
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
Guide ,
May 06, 2016 May 06, 2016

It is working?

Translate
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
Community Expert ,
May 07, 2016 May 07, 2016

Hi Kartik,

yout code is working.

As an alternative for the with-statement you could use the properties property of the layoutWindow.

Here an example with the ISO Coated v2 300% (ECI) profile, that is installed on my machine:

app.layoutWindows[0].properties =

{

    proofingType : ProofingType.CUSTOM ,

    proofingProfile : "ISO Coated v2 300% (ECI)",  //change as your wish

    preserveColorNumbers : true , //change as your wish

    simulatePaperWhite : true , //change as your wish

    simulateInkBlack : true //change as your wish

}

Note:

By using "Display" as value for proofingProfile you are explicitly targeting an RGB color profile so simulatePaperWhite and simulateInkBlack is meaningless. I detected no side effects of setting these values, but a customer using such a snippet could be a bit surprised or irritated when looking at the settings in the UI.

From my German InDesign CS6 some screen grabs, that illustrate this.

Proof condition "Display" set in the user interface:

SimulateProofCondition-Display-ByUserInterface.png

Proof condition "Display" set by the script snippet in your answer.
Two properties are set, that cannot be set in the UI. Fortunately they have no side effects here.

SimulateProofCondition-Display-ByScript.png

Side-by-side comparison of "Display" to "ISO Coated v2 300% (ECI)" with two layout windows of the same document open:

SimulateProofConditions-Display-vs-ISOCoatedv2-300.png

Uwe

Translate
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
Guide ,
May 07, 2016 May 07, 2016

Hi Uwe,

Thanks for your information. I gave "Display" just for example, Sudha may choose whatever she wish. So that i commented that line and said "//change as your wish". Because she want to know how to change the dropdown. So whatever the name she gave it will reflect.

Thanks again for your awesome explanation.

Thanks,

Karthi

Translate
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
Community Expert ,
May 07, 2016 May 07, 2016

Hi Karthi,

I know, that your code was just exploring options. You documented the properties fair enough.
My note was meant as a hint or a good advice not to irritate the versed end user or set false hopes for the non-versed one.

Uwe

Translate
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
Guide ,
May 07, 2016 May 07, 2016

Hi Uwe,

Yeah i understood. Not sure if my answer hurts you. If so, i apologize you.

You are the great mentor for beginners like me.

Thanks,

Karthi

Translate
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
Community Expert ,
May 07, 2016 May 07, 2016

No aplogogizing necessary, Karthi.
Really, it's good to discuss things like this more deeply.


Have a nice weekend!

Uwe

Translate
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
Contributor ,
May 08, 2016 May 08, 2016

Hi,

     Thank you so much...

     How can I get the all values from the drop down??

Translate
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
Community Expert ,
May 08, 2016 May 08, 2016

Hi Sudha,

lookup the DOM documentation for the document.

There you will find two properties:

rgbProfileList

cmykProfileList

Both return an array of strings.

Uwe

Translate
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
Contributor ,
May 10, 2016 May 10, 2016
LATEST

Hi,

     Thank you... its working...

Translate
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