Skip to main content
dublove
Legend
Apr 15, 2026 4:01 AM UTC
Answered

How to customize the interface colors for this script?

 

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.

 

 

    Stephen Marsh
    Stephen MarshCorrect answer
    Community Expert
    Apr 15, 2026 6:36 AM UTC

    ​@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';

     

    6 replies

    Legend
    Apr 15, 2026 12:30 PM UTC

    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.

    Translate
    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    Apr 15, 2026 6:36 AM UTC

    ​@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';

     

    Translate
    dublove
    dubloveAuthor
    Legend
    Apr 15, 2026 8:52 AM UTC

    ​@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.

    Translate
    Trevor.Dennis
    Community Expert
    Community Expert
    Apr 15, 2026 5:18 AM UTC

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

    Translate
    Stephen Marsh
    Community Expert
    Community Expert
    Apr 15, 2026 6:24 AM UTC

    Thanks Trevor!

    Translate
    dublove
    dubloveAuthor
    Legend
    Apr 15, 2026 9:30 AM UTC

    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, "取消");

     

    Translate