Skip to main content
dublove
Legend
April 15, 2026
Answered

How to customize the interface colors for this script?

  • April 15, 2026
  • 3 replies
  • 83 views

 

https://github.com/Paul-Riggott/PS-Scripts/blob/master/Picture%20Processor.jsx

Picture Processor.jsx is a very useful script. It would be great if it could be customized the interface colors.

 

The default color for this script is white.
If my Photoshop interface is medium gray, the text on the script interface becomes hard to read.
In that case, I need to change the Photoshop interface to white as well.

I don’t like a white interface; I’d prefer both the script and the Photoshop interface to be medium gray, and the font color is white..
It would be great if the script’s colors could be customized.

Also, wouldn’t it be great if it could read action files by default from the same directory as Picture Processor.jsx?

Thank you very much.

 

 

    Correct answer Stephen Marsh

    @dublove 

     

    Comment out the 3 key lines from:

     

    var win = new Window( 'dialog', 'PP' ); 
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    g.backgroundColor = myBrush;
    win.orientation='stack';

     

    To:

     

    var win = new Window( 'dialog', 'PP' ); 
    //g = win.graphics;
    //var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    //g.backgroundColor = myBrush;
    win.orientation='stack';

     

    3 replies

    Legend
    April 15, 2026

    Sounds like an opportunity to learn more about ExtendScript :) I recommend not changing text labels unless you know the effects. Just leave them in English.

    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    April 15, 2026

    @dublove 

     

    Comment out the 3 key lines from:

     

    var win = new Window( 'dialog', 'PP' ); 
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    g.backgroundColor = myBrush;
    win.orientation='stack';

     

    To:

     

    var win = new Window( 'dialog', 'PP' ); 
    //g = win.graphics;
    //var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    //g.backgroundColor = myBrush;
    win.orientation='stack';

     

    dublove
    dubloveAuthor
    Legend
    April 15, 2026

    @Stephen Marsh 

    Thank you very much.
    For the ActionScript 1 option, can it be set to automatically load the action script file “imgSize-200.atn” located in the same directory as the “Picture Processor.jsx” file?
    For example, the relative path: Presets\Scripts\imgSize-200.atn.

    This is because when selecting from Photoshop, the file is sometimes lost and needs to be re-recorded.
    The ActionScript 2 option can remain as is.

    Trevor.Dennis
    Community Expert
    Community Expert
    April 15, 2026

    I’m tagging ​@Stephen Marsh who is one of the scripting experts.  He will hopefully respond to your question.

    Stephen Marsh
    Community Expert
    Community Expert
    April 15, 2026

    Thanks Trevor!

    dublove
    dubloveAuthor
    Legend
    April 15, 2026

    One more question:
    Why do the buttons stop working after I change the “Process” and “Cancel” labels below to Chinese?
     

        win.g150.bu1 = win.g150.add('button', undefined, "Process");
    win.g150.bu1.preferredSize = [200, 20];
    win.g150.bu2 = win.g150.add('button', undefined, "Cancel");

    change to:

        win.g150.bu1 = win.g150.add('button', undefined, "执行");
    win.g150.bu1.preferredSize = [200, 20];
    win.g150.bu2 = win.g150.add('button', undefined, "取消");