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

Search and replace nested style in JS CS3

Guest
Feb 01, 2010 Feb 01, 2010

I need to find and replace numbers at the beginning of paragraph which is styled as nestedStyle. What is the code? ST Dishon

TOPICS
Scripting
1.2K
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
Guest
Feb 01, 2010 Feb 01, 2010

To clarify to my question above, I already have a script which searches paraqraph or character styles and renumbers or does any action, I just need to know the syntax for finding NestedStyles.

Thank you

ST Dishon

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
LEGEND ,
Feb 01, 2010 Feb 01, 2010

There is none.

You can try to infer the existence of the nested styling yourself, but

that's not for the faint of heart...

Harbs

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
Guest
Feb 01, 2010 Feb 01, 2010

Thank you for your prompt reply. Do you mean to define the specific

formatting of the nested style in the search (e.g. size, color, weight of

font)?

ST Dishon

|

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
LEGEND ,
Feb 01, 2010 Feb 01, 2010

If there's some unique identifying formatting, then yes. That's the

way to go...

Harbs

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
Contributor ,
Feb 01, 2010 Feb 01, 2010

Hi dishon,


I have attached the script to convert the applied nested styles to character style.


After that you can easily do what you required.


Regards,

Ramkumar .P

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
LEGEND ,
Feb 01, 2010 Feb 01, 2010

Very nice.

You can check out this script as well: http://in-tools.com/scripts.html#apply_nested

Harbs

http://www.in-tools.com

Innovations in Automation

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
Guest
Feb 02, 2010 Feb 02, 2010

Thanx. I've downloaded it and will try it at my convenience.

ST

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 ,
Feb 03, 2010 Feb 03, 2010

@Harbs:

At the download site of the script you write "Warning: this script will override any manually applied character styles which conflict with the nested styles!".
I tried with a lot of local formatting, but nearly all that was preserved when applying your script. The only occasion it broke was an locally formated underline gap color to a nested styled word. But that formating is rather rare as you already said at InDesign Secret's forum blog.

Are there other cases?

Uwe

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
LEGEND ,
Feb 03, 2010 Feb 03, 2010
LATEST

It will not overwrite local formatting. It will change any CHARACTER

STYLEs which are applied to the nested areas.

Harbs

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