Skip to main content
Yogesh Yogi
Participant
Apr 1, 2026 7:19 AM UTC
Question

Need help in Finding the syntax for separation preview

Need help in Finding the syntax for separation preview….. In the InDesign We are automating the flow through extendtool kit using Javascript where we are facing the problem finding the Proper Syntax for accessing the Separation previews in the Windows panel …. InDesing App » windows » separation previews.. also the shortcut for that is “Shift+F6”. Kindly provide me the Syntax.

 

    9 replies

    rob day
    Community Expert
    Community Expert
    Apr 1, 2026 1:03 PM UTC

    Hi ​@Yogesh Yogi ,  Maybe this?:

     

    var op =  app.menuActions.itemByName("Overprint Preview")
    if(!op.checked){
    op.invoke();
    };

    Before and after:

     

    Translate
    Yogesh Yogi
    Participant
    Apr 2, 2026 11:38 AM UTC

    Hi ​@rob day 

    Thank you. This works fine. However, I also need to enable/disable specific CMYK options (for example, activating or deactivating Yellow or Cyan).

    Could you please provide the syntax for this? I would really appreciate it.

    Translate
    rob day
    Community Expert
    Community Expert
    Apr 2, 2026 12:23 PM UTC

    I don’t think there is a way to manipulate the Separation Preview’s inks display via JS.

    Translate
    Community Expert
    Apr 1, 2026 7:26 AM UTC

    Hi ​@Yogesh Yogi  what exactly do you want to achieve? Open this panel? If so then you can use the following code

    app.panels.itemByName("Separations Preview").visible = true

    Translate
    -Manan
    Yogesh Yogi
    Participant
    Apr 1, 2026 8:38 AM UTC

    Hi ​@Manan Joshi Thank you for the response, But this syntax only make the separate previews visible and not visible …. and I can’t able to access the options inside that separation preview panel…. is there Any other syntax can help me to access inside the separation previews 

     

    Translate
    Community Expert
    Apr 1, 2026 11:25 AM UTC

    I am not able to understand what you are trying to say. Please elaborate it. What exactly do you want to do. You said “But this syntax only make the separate previews visible and not visible” how can something be visible and also not visible.

    Now about options inside the panel, which options do you want specifically?

    Translate
    -Manan