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

how to change all text to black

Community Beginner ,
Jan 28, 2025 Jan 28, 2025

Hello!
I need to change all text set in non-black colours to 100% black. There are hundreds of pages, but not all text colours have been added to the swatches. Is there a way to do this, either through find-and-change or a script? Please help!

TOPICS
How to , Scripting , Type
699
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

correct answers 1 Correct answer

Community Expert , Jan 28, 2025 Jan 28, 2025

This find change query should work:

Capture d’écran 2025-01-28 à 17.00.27.png

^? means “any character”

 

But don't you use paragraph styles?

Translate
Community Expert ,
Jan 28, 2025 Jan 28, 2025

This find change query should work:

Capture d’écran 2025-01-28 à 17.00.27.png

^? means “any character”

 

But don't you use paragraph styles?

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 ,
Jan 28, 2025 Jan 28, 2025

I could just test and see, but this approach leaves me with the feeling it might simply "paint over" other document flaws. It really may be this simple, but having colors in a doc with no corresponding swatches feels like a red flag for other structural problems.

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 ,
Jan 28, 2025 Jan 28, 2025

but this approach leaves me with the feeling it might simply "paint over" other document flaws.

[…] but having colors in a doc with no corresponding swatches feels like a red flag for other structural problems.

I totally agree, but it answers to the OP question. And that's why I asked @Elizabeth285754906b5l if she used paragraph styles.

 

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 ,
Jan 28, 2025 Jan 28, 2025

Can we assume that the colors are spot formatting, not Character Styles? (If the lattter, simply delete or change the relevant styles!)

 

It would be fairly simple to reset all Paragraph Styles to their defined state, and assuming their defined color is Black that would remove both spot and Character Style colors. It would also remove any other spot formatting (and Character Styles for italics, bold, etc. if applied).

 

A more effective step might be to back up to the source document — I am assuming something like Word — and fix the problem there, where it might be more "accessible" through color swatches you can delete, or in the import process.

 

A few more details about the colors, where they came from, whether their swatches can be preserved on a re-import, etc. would help if the above doesn't point you in a useful direction.

 

 

 

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 ,
Jan 28, 2025 Jan 28, 2025

Easier method:

On the Swatches panel menu, select Add Unnamed Colors.

Then select them all (click on the top added swatch and shift-click on the bottom added swatch).

Delete the swatches.

Replace with Black.

David Creamer: Community Expert (ACI and ACE 1995-2023)
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 ,
Jan 28, 2025 Jan 28, 2025

Um, yeah, that might just work. 🙂

 

How do unnamed/unswatched colors get into an ID document, anyway? A bad import seems to be the only path.

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 ,
Jan 28, 2025 Jan 28, 2025
LATEST

Color panel can add unnamed colors. One reason why I never use it.

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
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