Copy link to clipboard
Copied
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...
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
Copy link to clipboard
Copied
app.activeDocument.layoutWindows[0].simulatePaperWhite=true;
app.activeDocument.layoutWindows[0].simulateInkBlack =true
Copy link to clipboard
Copied
with (app.layoutWindows[0]) {
proofingType = ProofingType.CUSTOM;
proofingProfile = "Display";
preserveColorNumbers = false;
}
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
It is working?
Copy link to clipboard
Copied
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:
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.
Side-by-side comparison of "Display" to "ISO Coated v2 300% (ECI)" with two layout windows of the same document open:
Uwe
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
No aplogogizing necessary, Karthi.
Really, it's good to discuss things like this more deeply.
Have a nice weekend!
Uwe
Copy link to clipboard
Copied
Hi,
Thank you so much...
How can I get the all values from the drop down??
Copy link to clipboard
Copied
Hi Sudha,
lookup the DOM documentation for the document.
There you will find two properties:
rgbProfileList
cmykProfileList
Both return an array of strings.
Uwe
Copy link to clipboard
Copied
Hi,
Thank you... its working...
Find more inspiration, events, and resources on the new Adobe Community
Explore Now