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

Make part of a text line bold in script

New Here ,
Oct 05, 2022 Oct 05, 2022

I have a script that changes the text of a card in photoshop. I am trying to get it so that certain parts, say from characters "8" to "36" are BOLD, and the rest are not. Is this something I can do? 

 

Example:

Material: A small morsel of food

becomes

Material: A small morsel of food

 

Sometimes this will be in the middle of a block of text however.

TOPICS
Actions and scripting , Windows
292
Translate
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
Advisor ,
Oct 05, 2022 Oct 05, 2022

@Minimuscle,

 

RE: "I have a script that changes the text of a card in photoshop"

Can you post the script that you have along with a sample/test file?

 

Regards,

Mike

Translate
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 ,
Oct 05, 2022 Oct 05, 2022

This is possible, but requires a lot of action manager code. I had a coworker who did that, but I no longer have the code. My suggestion would be to use scriptListener to record some text with the formatting you have in mind, then look at the code to see where you can swap the hard code for variables. Text code is really long!

Translate
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 ,
Oct 05, 2022 Oct 05, 2022
LATEST
Translate
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