Photoshop Scripts. Static text. Can I colored it?

New Here ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

Hello!

Can I colored static text in UI?

I want to have red text in one staticText in UI. But I have no ideas, how to do this(

TOPICS
Actions and scripting

Views

47

Likes

Translate

Translate

Report

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

Adobe Community Professional , Feb 18, 2022 Feb 18, 2022
Code sample taken from page 89 of the Beginning ScriptUI guide by Peter Kahrel (255r 0g 0b): // Font and colours for the second item, edittext e.graphics.font = ScriptUI.newFont ("Letter Gothic Std", "Bold", 30); e.graphics.foregroundColor = e.graphics.newPen (e.graphics.PenType.SOLID_COLOR, [1, 0, 0], 1); Another example in this Bridge script from Paul Riggott: https://github.com/Paul-Riggott/PS-Scripts/blob/master/Rename%20Replace.jsx

Likes

Translate

Translate
Adobe Community Professional ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

Code sample taken from page 89 of the Beginning ScriptUI guide by Peter Kahrel (255r 0g 0b):

 

// Font and colours for the second item, edittext
e.graphics.font = ScriptUI.newFont ("Letter Gothic Std", "Bold", 30);
e.graphics.foregroundColor = e.graphics.newPen (e.graphics.PenType.SOLID_COLOR, [1, 0, 0], 1);

 

Another example in this Bridge script from Paul Riggott:

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

 

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Feb 18, 2022 Feb 18, 2022

Copy link to clipboard

Copied

I recall a book on Indesign Scripting by Peter Kahrel which was pretty great for me. 

Did he publish more general or even Photoshop-realted material, too? 

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

LATEST

Not that I am aware of, the guide that I was referring to was his general PDF that used many InDesign examples, however most of the guide was generally applicable to other apps.

Likes

Translate

Translate

Report

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