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

InDesign - .remove() styles default behaviour

Explorer ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

Hi InDesign scripters!
I am pretty new to ID scripting, but have lots of experience of CEP for Photoshop.
I have a query about the .remove() method for styles that I hope someone can shed a bit more light on than the documentation.
The .remove() method appears to preserve formatting by default, but I would like to confirm that this is actually the case as I can't find any explicit reference in the docs (both offical and Jongware).
My own tests seem to indicate that this is the case, but I'm not knowledgeable enough about ID to predict any edge cases where where the formatting might not be preserved upon executing .remove(), and I need a bit more confidence than "it just works"!

Thanks in advance!

TOPICS
Scripting

Views

187

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 26, 2021 Feb 26, 2021

Yes, unless you add the replacing with parameter, the formatting is not changed. It would be the equivalent of selecting a paragraph and choosing Break Link to Style from the Paragraph Styles panel.

Votes

Translate

Translate
Community Expert ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

Yes, unless you add the replacing with parameter, the formatting is not changed. It would be the equivalent of selecting a paragraph and choosing Break Link to Style from the Paragraph Styles panel.

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
Explorer ,
Feb 26, 2021 Feb 26, 2021

Copy link to clipboard

Copied

LATEST

Amazing, thanks for that Rob!

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