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

Script to find Character Styles and delete content

New Here ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

I have no idea if this is possible, to make a script to find specific Character Styles and then delete found content.

For instance, I have pages and pages on separate documents that have pricing information (all in a specific character style) and I need to delete all pricing. Just looking for the most efficient way to achieve this.

Thanks for any advice.

TOPICS
Scripting

Views

345

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 ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

Hi cwwwwww​

I don't think that you need a script.

use Grep search & Replace instead

find:

.+

Find format: --> your Character style

replace with:

[nothing]

Have fun

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
New Here ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

That is great! What about multiple Character Styles at a time?

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 ,
May 10, 2018 May 10, 2018

Copy link to clipboard

Copied

LATEST

How about with this free script ChainGrep.jsx written by genius Gregor Fellenz grefel​

Video and Download source under GREP-Ersetzungen automatisieren in InDesign

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