• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Photoshop Scripts. Static text. Can I colored it?

Community Beginner ,
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

181

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

Community Expert , 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

 

Votes

Translate

Translate
Adobe
Community Expert ,
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

 

Votes

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
Community Expert ,
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? 

Votes

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
Community Expert ,
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.

Votes

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